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 Marten Kenbeek, 8 years ago

Has patch: set

comment:2 by Tim Graham, 8 years ago

Triage Stage: UnreviewedAccepted

comment:3 by Tim Graham, 8 years ago

Triage Stage: AcceptedReady for checkin

comment:4 by Tim Graham <timograham@…>, 8 years ago

Resolution: fixed
Status: assignedclosed

In 1358a67:

Fixed #27713 -- Clarified NoReverseMatch error message when no view is found.

Note: See TracTickets for help on using tickets.
Back to Top