TECHNICAL_404_TEMPLATE doesn't see URLConfs directly on request objects
|Reported by:||mattbennett||Owned by:||nobody|
|Severity:||Keywords:||404, urlconf, debug, template|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The default debug 404 template in django/views/debug.py assumes that the urlconf searched was the root urlconf. Since  the urlconf can be set by middleware, so this is not necessarily the case.
The attached patch puts the module name of the urlconf being used into the template context, and modifies the template accordingly.