[Django] #32707: Wrong reference to template

23 views
Skip to first unread message

Django

unread,
May 2, 2021, 12:58:17 PM5/2/21
to django-...@googlegroups.com
#32707: Wrong reference to template
-------------------------------------+-------------------------------------
Reporter: Omid | Owner: nobody
Shojaee |
Type: Bug | Status: new
Component: Template | Version: 3.2
system |
Severity: Normal | Keywords: NoReverseMatch
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Hello,

In my template, I have a reference to an app that doesn't exist yet, so
Django shows me "NoReverseMatch" error, which is **correct**.

But,

My template extends ```base.html``` template, and in the details of the
error Django shows a random line of ```base.html``` not the actual line in
the ```index.html``` (where the actual reference to non-existent app is).
This makes debugging of the error very hard.

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

Django

unread,
May 2, 2021, 5:47:02 PM5/2/21
to django-...@googlegroups.com
#32707: Wrong reference to template
---------------------------------+--------------------------------------
Reporter: Omid Shojaee | Owner: nobody
Type: Bug | Status: closed
Component: Template system | Version: 3.2
Severity: Normal | Resolution: duplicate
Keywords: NoReverseMatch | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0

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

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


Comment:

This looks like a duplicate of #28935.

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

Reply all
Reply to author
Forward
0 new messages