Opened 8 years ago
Closed 8 years ago
#27713 closed Cleanup/optimization (fixed)
Clarify NoReverseMatch error message when view is not found
Reported by: | Marten Kenbeek | Owned by: | Marten Kenbeek |
---|---|---|---|
Component: | Core (URLs) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
If no view is found for a specific view name, the error message contains the somewhat cryptic clue "0 pattern(s) tried: []". If you're not aware what this means, this can easily throw you off the right track to fixing this issue. Over the years I've seen a decent number of SO questions about NoReverseMatch errors that seem to miss this fact.
I think we should clarify the error message when no view is found so it is clear the error is in the view name, not in the arguments.
Change History (4)
comment:1 by , 8 years ago
Has patch: | set |
---|
comment:2 by , 8 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:3 by , 8 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
comment:4 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
In 1358a67: