mirror of
https://github.com/django/django.git
synced 2025-12-15 21:45:20 +00:00
[1.8.x] Deprecated TEMPLATE_DEBUG setting.
Backport of 15b711b from master.
This commit is contained in:
parent
69c662c981
commit
e8950668ca
20 changed files with 72 additions and 48 deletions
|
|
@ -772,10 +772,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue