[Django] #24120: Backend-agnostic debug information on template loading failures

9 views
Skip to first unread message

Django

unread,
Jan 11, 2015, 4:59:57 AM1/11/15
to django-...@googlegroups.com
#24120: Backend-agnostic debug information on template loading failures
-------------------------------------+-------------------------------------
Reporter: aaugustin | Owner: nobody
Type: Bug | Status: new
Component: Template | Version: master
system | Keywords: multiple-template-
Severity: Normal | engines
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Currently ExceptionReporter.get_traceback_data() contains a special case
for exceptions raised when a template cannot be found.

It retries loading the template with each template loader to figure out
which paths were tried. Since the multiple templates engines refactor,
this still works, but only if there's only one Django templates engine
configured.

This logic should be embedded in the template engine. Third-part engines
should have access to similar functionality through a public API.

Some ideas were brought up in [https://groups.google.com/d/msg/django-
developers/VFBLAoPSplI/H_hQq29u8PcJ this django-developers discussion].

--
Ticket URL: <https://code.djangoproject.com/ticket/24120>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 24, 2015, 4:09:48 PM4/24/15
to django-...@googlegroups.com
#24120: Backend-agnostic debug information on template loading failures
-------------------------------------+-------------------------------------
Reporter: aaugustin | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: master
Severity: Normal | Resolution:
Keywords: multiple-template- | Triage Stage: Accepted
engines |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by prestontimmons):

* has_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/24120#comment:1>

Django

unread,
May 5, 2015, 9:58:25 AM5/5/15
to django-...@googlegroups.com
#24120: Backend-agnostic debug information on template loading failures
-------------------------------------+-------------------------------------
Reporter: aaugustin | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: master
Severity: Normal | Resolution:
Keywords: multiple-template- | Triage Stage: Ready for
engines | checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/24120#comment:2>

Django

unread,
May 6, 2015, 6:47:37 PM5/6/15
to django-...@googlegroups.com
#24120: Backend-agnostic debug information on template loading failures
-------------------------------------+-------------------------------------
Reporter: aaugustin | Owner: nobody
Type: Bug | Status: closed

Component: Template system | Version: master
Severity: Normal | Resolution: fixed

Keywords: multiple-template- | Triage Stage: Ready for
engines | checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Preston Timmons <prestontimmons@…>):

* status: new => closed
* resolution: => fixed


Comment:

In [changeset:"adff499e47d99f6b40307acc1ace95508e3c5910" adff499]:
{{{
#!CommitTicketReference repository=""
revision="adff499e47d99f6b40307acc1ace95508e3c5910"
Fixed #24119, #24120 -- Formalized debug integration for template
backends.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24120#comment:3>

Reply all
Reply to author
Forward
0 new messages