summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorMaarten Breddels <maartenbreddels@gmail.com>2024-08-21 19:56:35 +0200
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-08-23 18:07:47 +0200
commitcdcd604ef8f650533eff6bd63a517ebb4ffddf96 (patch)
treebaf1ae101f92112e6c4c2f94f348458fec922062 /django
parentf72bbd44808452f4a70be5f7b9d35e46dee32e2d (diff)
Fixed #35703 -- Made technical_404_response() respect SCRIPT_NAME to return default_urlconf().
Diffstat (limited to 'django')
-rw-r--r--django/views/debug.py2
1 files changed, 1 insertions, 1 deletions
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", "")