Make technical 404 page always show tried URL patterns
|Patch needs improvement:
Right now, the technical 404 page (shown in DEBUG mode) shows the URL patterns when a URL is not matched. This is quite handy for debugging, as it helps show why a URL resulted in a 404. However, when a URL is matched and the view raises
Http404, this information is not shown. I'm suggesting we show all URLs that were tried up to the point of resolution of the URL to provide more debugging info.
(Extracted from https://github.com/django/django/pull/13134)