[Tutor] Bar Operator ??
Danny Yoo
dyoo at hashcollision.org
Mon Mar 11 07:33:52 CET 2013
>
> It's a filter:
>
> https://docs.djangoproject.com/en/1.5/ref/templates/builtins/
And to be explicit about Mitya's point: it's technically not Python.
It's part of Django's template language. If it were Python, it'd be
interpreted as the "or" bitwise operator,
http://docs.python.org/3/reference/expressions.html#binary-bitwise-operations
but that's definitely not what's happening here. In your context, as
part of a Django template document, interpret "|" as notation for the
filtering operation.
More information about the Tutor
mailing list