As proposed and supported in the linked discussion, deprecate the
silencing of exceptions while rending the `{% include %}` template tag.
As this silencing behavior only occurs when `template.debug=True`, it is
difficult to rely on this as a "feature". Further, the behavior could
silence actual bugs during development as well as lead to a different
error reporting path when used in production. (e.g. Errors are reported
through Django template logging instead of through Sentry.)
--
Ticket URL: <https://code.djangoproject.com/ticket/27175>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/7208 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/27175#comment:1>
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/27175#comment:2>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/27175#comment:3>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"331ca5391eb64cbac3a001209257beb93522d587" 331ca53]:
{{{
#!CommitTicketReference repository=""
revision="331ca5391eb64cbac3a001209257beb93522d587"
Fixed #27175 -- Deprecated silencing exceptions from the {% include %}
template tag.
Thanks Tim Graham for the review.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27175#comment:4>
Comment (by Tim Graham <timograham@…>):
In [changeset:"e62165b898785e890661953c3b2c9c36d98aee57" e62165b]:
{{{
#!CommitTicketReference repository=""
revision="e62165b898785e890661953c3b2c9c36d98aee57"
Refs #27175 -- Removed exception silencing from the {% include %} template
tag.
Per deprecation timeline.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27175#comment:5>
Comment (by Tim Graham <timograham@…>):
In [changeset:"058d112ed2635873d415661bdf0fcc8752ec37c9" 058d112]:
{{{
#!CommitTicketReference repository=""
revision="058d112ed2635873d415661bdf0fcc8752ec37c9"
Refs #27175 -- Removed an obsolete test comment and DEBUG=True.
As of e62165b898785e890661953c3b2c9c36d98aee57, {% include %}
doesn't silence exceptions.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27175#comment:6>