diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-11-23 23:29:25 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-11-23 23:29:25 +0000 |
| commit | 140f4a69134da5524a987d2e3bd6f567911c4145 (patch) | |
| tree | 73efcd301e7ffa2bf0e2947f08cec4c1218aacbb /docs/settings.txt | |
| parent | 39eac9bdff25078b89845d94706523fdeec0a213 (diff) | |
Added TEMPLATE_DEBUG to docs/settings.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1384 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/settings.txt')
| -rw-r--r-- | docs/settings.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/settings.txt b/docs/settings.txt index eed9d03d39..66baeb0860 100644 --- a/docs/settings.txt +++ b/docs/settings.txt @@ -549,6 +549,23 @@ The ID, as an integer, of the current site in the ``sites`` database. This is used so that application data can hook into specific site(s) and a single database can manage content for multiple sites. +TEMPLATE_DEBUG +-------------- + +Default: ``False`` + +**Only available in Django development version.** + +A boolean that turns on/off template debug mode. If this is ``True``, the fancy +error page will display a detailed report for any ``TemplateSyntaxError``. This +report contains the relevant snippet of the template, with the appropriate line +highlighted. + +Note that Django only displays fancy error pages if ``DEBUG`` is ``True``, so you'll +want to set that to take advantage of this setting. + +See also DEBUG. + TEMPLATE_DIRS ------------- |
