From cdcd604ef8f650533eff6bd63a517ebb4ffddf96 Mon Sep 17 00:00:00 2001 From: Maarten Breddels Date: Wed, 21 Aug 2024 19:56:35 +0200 Subject: Fixed #35703 -- Made technical_404_response() respect SCRIPT_NAME to return default_urlconf(). --- django/views/debug.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/views/debug.py') diff --git a/django/views/debug.py b/django/views/debug.py index 38f1338461..10b4d22030 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -620,7 +620,7 @@ def technical_404_response(request, exception): else: resolved = False if not tried or ( # empty URLconf - request.path == "/" + request.path_info == "/" and len(tried) == 1 and len(tried[0]) == 1 # default URLconf and getattr(tried[0][0], "app_name", "") -- cgit v1.3