We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 599d76e commit 6207ea9Copy full SHA for 6207ea9
debug_toolbar/middleware.py
@@ -84,6 +84,8 @@ def process_request(self, request):
84
new_urlconf.urlpatterns = debug_toolbar.urls.urlpatterns + \
85
list(urlconf.urlpatterns)
86
87
+ if hasattr(urlconf, 'handler403'):
88
+ new_urlconf.handler404 = urlconf.handler403
89
if hasattr(urlconf, 'handler404'):
90
new_urlconf.handler404 = urlconf.handler404
91
if hasattr(urlconf, 'handler500'):
0 commit comments