diff --git a/django/views/debug.py b/django/views/debug.py index d6974b5732..47b51f73e1 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -273,16 +273,16 @@ TECHNICAL_500_TEMPLATE = """ {% if template_info %}
-

Template

- In template {{ template_info.name }}, error at line {{ template_info.line }} -
{{ template_info.message|escape }}
+

Template error

+

In template {{ template_info.name }}, error at line {{ template_info.line }}

+

{{ template_info.message|escape }}

{% for source_line in template_info.source_lines %} {% ifequal source_line.0 template_info.line %} - + {% else %} - + {% endifequal %} {% endfor %}
{{ source_line.0 }}
{{ source_line.0 }} {{ template_info.before }}{{ template_info.during }}{{ template_info.after }}
{{ source_line.0 }}
{{ source_line.0 }} {{ source_line.1 }}