diff options
Diffstat (limited to 'django')
| -rw-r--r-- | django/views/debug.py | 6 |
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 %} |
