1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #35703 -- Made technical_404_response() respect SCRIPT_NAME to return default_urlconf().

This commit is contained in:
Maarten Breddels
2024-08-21 19:56:35 +02:00
committed by Sarah Boyce
parent f72bbd4480
commit cdcd604ef8
2 changed files with 10 additions and 1 deletions

View File

@@ -398,6 +398,15 @@ class DebugViewTests(SimpleTestCase):
response, "<h1>The install worked successfully! Congratulations!</h1>"
)
@override_settings(
ROOT_URLCONF="view_tests.default_urls", FORCE_SCRIPT_NAME="/FORCED_PREFIX"
)
def test_default_urlconf_script_name(self):
response = self.client.request(**{"path": "/FORCED_PREFIX/"})
self.assertContains(
response, "<h1>The install worked successfully! Congratulations!</h1>"
)
@override_settings(ROOT_URLCONF="view_tests.regression_21530_urls")
def test_regression_21530(self):
"""