Well, the reason I sent this was due to the fact that while in templates
when you are doing conditionals, the spaces are mandatory.
i.e,
Works : {% if request.session.VARIABLE_NAME == "1" %}
Doesn't : {% if request.session.VARIABLE_NAME=="1" %}
On Fri, Apr 18, 2014 at 8:10 AM, Ramón Carrillo w
I guess you are not supposed to use spaces there.
IIRC spaces aren't allowed when using filters, neither (e.g.
var|filter1 is ok, var | filter1 is not)
You could find the exact reason digging in the template compiler code.
https://github.com/django/django/blob/master/django/template/__init__.py
2 matches
Mail list logo