Fixed #31791 -- Made technical 404 debug page display the tried URL patterns for Http404.

This commit is contained in:
Jon Dufresne 2020-07-07 16:23:54 -07:00 committed by Mariusz Felisiak
parent 83dea65ed6
commit 11ebc6479f
5 changed files with 56 additions and 13 deletions

View file

@ -137,6 +137,13 @@ If the URL does not resolve, the function raises a
For example, if ``path('users/<id>/', ...)`` is the matching pattern,
``route`` will contain ``'users/<id>/'``.
.. attribute:: ResolverMatch.tried
.. versionadded:: 3.2
The list of URL patterns tried before the URL either matched one or
exhausted available patterns.
.. attribute:: ResolverMatch.app_name
The application namespace for the URL pattern that matches the