On Mon, Jun 16, 2008 at 5:59 PM, Peter Bengtsson <[EMAIL PROTECTED]> wrote:
>
> I have TEMPLATE_DEBUG on but if I write::
>
> X{{ somethingthatdoesnotexits }}X
>
> The output is just XX and no error. How can I enable explicit
> rendering and raise errors on typos in the templates?
Django templates are silent on failure by design. However, when you
are in template debug mode, you can set
TEMPLATE_STRING_IF_INVALID='xxx', and 'missing' context variables will
be substituted with 'xxx'
http://www.djangoproject.com/documentation/settings/#template-string-if-invalid
Yours
Russ Magee %-)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---