diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2006-10-13 14:26:08 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2006-10-13 14:26:08 +0000 |
| commit | 73a6eb8ed08da2342baa7f4b4ed9b6743b5fb241 (patch) | |
| tree | 51796b60706b3b864e35999bd9dbc06a75b302bb /docs/templates_python.txt | |
| parent | f83e439efac6a390d36e4da467db142eeb1003cc (diff) | |
Fixes #2384,#2566 -- Clarify the role that TEMPLATE_STRING_IF_INVALID plays in the template system, and the problems that can occur if it is used on a production site.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3901 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/templates_python.txt')
| -rw-r--r-- | docs/templates_python.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/templates_python.txt b/docs/templates_python.txt index 8129b209c7..a1d15811f8 100644 --- a/docs/templates_python.txt +++ b/docs/templates_python.txt @@ -212,6 +212,21 @@ template tags. If an invalid variable is provided to one of these template tags, the variable will be interpreted as ``None``. Filters are always applied to invalid variables within these template tags. +.. admonition:: For debug purposes only! + + While ``TEMPLATE_STRING_IF_INVALID`` can be a useful debugging tool, + it is a bad idea to turn it on as a 'development default'. + + Many templates, including those in the Admin site, rely upon the + silence of the template system when a non-existent variable is + encountered. If you assign a value other than ``''`` to + ``TEMPLATE_STRING_IF_INVALID``, you will experience rendering + problems with these templates and sites. + + Generally, ``TEMPLATE_STRING_IF_INVALID`` should only be enabled + in order to debug a specific template problem, then cleared + once debugging is complete. + Playing with Context objects ---------------------------- |
