Converting from Django, I\'m used to doing something like this:
{% if not var1 %} {% endif %}
and having it work if I didn\'t put var1 into
{% if variable is defined %} is true if the variable is None.
{% if variable is defined %}
None
Since not is None is not allowed, that means that
not is None
{% if variable != None %}
is really your only option.