mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #27175 -- Deprecated silencing exceptions from the {% include %} template tag.
Thanks Tim Graham for the review.
This commit is contained in:
parent
7ca3b391b6
commit
331ca5391e
6 changed files with 53 additions and 10 deletions
|
@ -731,6 +731,11 @@ is turned off, ``{% include %}`` logs a warning to the ``django.template``
|
|||
logger with the exception that happens while rendering the included template
|
||||
and returns an empty string.
|
||||
|
||||
.. deprecated:: 1.11
|
||||
|
||||
Silencing exceptions raised while rendering the ``{% include %}`` template
|
||||
tag is deprecated. In Django 2.1, the exception will be raised.
|
||||
|
||||
.. note::
|
||||
The :ttag:`include` tag should be considered as an implementation of
|
||||
"render this subtemplate and include the HTML", not as "parse this
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue