1
0
mirror of https://github.com/django/django.git synced 2025-10-24 22:26:08 +00:00

Fixed #27373 -- Corrected 404 debug page message for an empty request path.

This commit is contained in:
Mariusz Felisiak
2016-10-27 22:58:41 +02:00
committed by Tim Graham
parent 968f61b991
commit c7f86d3eec
2 changed files with 19 additions and 4 deletions

View File

@@ -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 %}