diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-02-15 15:42:05 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-02-15 20:47:04 +0100 |
| commit | 15b711b5ee9ce1ddd01cf88b2bbbec4a6cbec648 (patch) | |
| tree | 64966e17bf88b41b0f93f04c15ff2e4a76e071be /docs/howto | |
| parent | 9fbd302f91162434f375b67a533d4a955a439484 (diff) | |
Deprecated TEMPLATE_DEBUG setting.
Diffstat (limited to 'docs/howto')
| -rw-r--r-- | docs/howto/custom-template-tags.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/howto/custom-template-tags.txt b/docs/howto/custom-template-tags.txt index e4fe6949ea..463c3bbfe5 100644 --- a/docs/howto/custom-template-tags.txt +++ b/docs/howto/custom-template-tags.txt @@ -756,10 +756,9 @@ Notes: * The ``render()`` method is where the work actually happens. * ``render()`` should generally fail silently, particularly in a production - environment where :setting:`DEBUG` and :setting:`TEMPLATE_DEBUG` are - ``False``. In some cases however, particularly if :setting:`TEMPLATE_DEBUG` is - ``True``, this method may raise an exception to make debugging easier. For - example, several core tags raise ``django.template.TemplateSyntaxError`` + environment. In some cases however, particularly if ``context.engine.debug`` + is ``True``, this method may raise an exception to make debugging easier. + For example, several core tags raise ``django.template.TemplateSyntaxError`` if they receive the wrong number or type of arguments. Ultimately, this decoupling of compilation and rendering results in an |
