If the variable does not exist at all (which is strange, because you should
be passing in all the variables needed by the template, from the view that
calls it), then the docs say:
If you use a variable that doesn’t exist, the template system will insert
the value of the TEMPLATE_STRING_IF_INVA
I would define avar in the context inside the view function with a value of
None (or other falsey value).
From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On
Behalf Of Florian Perrodin
Sent: Wednesday, February 8, 2017 3:37 AM
To: Django users
Subject: Logs bloated by t
2 matches
Mail list logo