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:
committed by
Tim Graham
parent
968f61b991
commit
c7f86d3eec
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user