Opened 4 years ago
Closed 4 years ago
#32631 closed Bug (duplicate)
Django shows wrong file for NoReverseMatch error
Reported by: | Omid Shojaee | Owned by: | nobody |
---|---|---|---|
Component: | Template system | Version: | 3.2 |
Severity: | Normal | Keywords: | NoReverseMatch |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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".
Change History (1)
comment:1 by , 4 years ago
Component: | Error reporting → Template system |
---|---|
Owner: | set to |
Resolution: | → duplicate |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Thank you for the report. This looks like a duplicate of #28935.