[Django] #32631: Django shows wrong file for NoReverseMatch error

2 views
Skip to first unread message

Django

unread,
Apr 9, 2021, 4:18:41 PM4/9/21
to django-...@googlegroups.com
#32631: Django shows wrong file for NoReverseMatch error
-------------------------------------+-------------------------------------
Reporter: | Owner: (none)
OmidShojaee |
Type: Bug | Status: new
Component: Error | Version: 3.2
reporting |
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 exists yet.

So, Django shows "NoReverseMatch" error — this is what I'm expecting to
see.

I'm also expecting to see my template name and line number, however,
Django shows line 26 of "base.html" file instead of line 25 of
"index.html" file — the latter is where the invalid reference is.

This is happening with all templates that inherited "base.html".

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

Django

unread,
Apr 10, 2021, 8:40:00 AM4/10/21
to django-...@googlegroups.com
#32631: Django shows wrong file for NoReverseMatch error
---------------------------------+--------------------------------------
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 David Smith):

* owner: (none) => nobody
* resolution: => duplicate
* status: new => closed
* component: Error reporting => Template system


Comment:

Thank you for the report. This looks like a duplicate of #28935.

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

Reply all
Reply to author
Forward
0 new messages