diff --git a/django/views/templates/technical_404.html b/django/views/templates/technical_404.html index aeba2daf9c..c47dae22af 100644 --- a/django/views/templates/technical_404.html +++ b/django/views/templates/technical_404.html @@ -26,7 +26,7 @@
{{ reason }}{% endif %} + {% if reason and resolved %}
{{ reason }}{% endif %}
Request Method: | diff --git a/tests/view_tests/tests/test_debug.py b/tests/view_tests/tests/test_debug.py index 28734434f3..9c85ed20fc 100644 --- a/tests/view_tests/tests/test_debug.py +++ b/tests/view_tests/tests/test_debug.py @@ -122,6 +122,11 @@ class DebugViewTests(SimpleTestCase): def test_404(self): response = self.client.get('/raises404/') + self.assertNotContains( + response, + '
---|