summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2016-10-27 22:58:41 +0200
committerTim Graham <timograham@gmail.com>2016-10-27 16:58:41 -0400
commitc7f86d3eec84aeff83fc01f12990edb329ec2c4d (patch)
tree2b3d6d284424cb8636c3dd78626cde3d9895c7b3 /django
parent968f61b99180a17e1752432df38f28f192c6cf86 (diff)
Fixed #27373 -- Corrected 404 debug page message for an empty request path.
Diffstat (limited to 'django')
-rw-r--r--django/views/debug.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/django/views/debug.py b/django/views/debug.py
index f7c685893c..1a72ec0405 100644
--- a/django/views/debug.py
+++ b/django/views/debug.py
@@ -1193,7 +1193,11 @@ TECHNICAL_404_TEMPLATE = """
</li>
{% endfor %}
</ol>
- <p>The current URL, <code>{{ request_path|escape }}</code>, didn't match any of these.</p>
+ <p>
+ {% if request_path %}
+ The current path, <code>{{ request_path|escape }}</code>,{% else %}
+ The empty path{% endif %} didn't match any of these.
+ </p>
{% else %}
<p>{{ reason }}</p>
{% endif %}