hello, Here it is what you are looking for : """ If you use a variable that doesn’t exist, the template system will insert the value of the TEMPLATE_STRING_IF_INVALID setting, which is set to '' (the empty string) by default """ It is extracted from the documentation. --yml
On Apr 18, 6:23 pm, Salim Fadhley <[EMAIL PROTECTED]> wrote: > I have some templates which attempt to access non-existent attributes > of the context. > > For example supposing the template references {{ foo }} but foo does > not exist - can I force djgango to throw an error? > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---