#27713: Clarify NoReverseMatch error message when view is not found -------------------------------------+------------------------------------- Reporter: Marten | Owner: Marten Kenbeek Kenbeek | Type: | Status: assigned Cleanup/optimization | Component: Core | Version: master (URLs) | Severity: Normal | Keywords: Triage Stage: | Has patch: 0 Unreviewed | Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | -------------------------------------+------------------------------------- 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. -- Ticket URL: <https://code.djangoproject.com/ticket/27713> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/047.5a74ce3448d0f04fdfa5f16cd89b24c8%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.