From 39eac9bdff25078b89845d94706523fdeec0a213 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Wed, 23 Nov 2005 23:15:52 +0000 Subject: [PATCH] Added Wilson's HTML tweaks to the template error screen git-svn-id: http://code.djangoproject.com/svn/django/trunk@1381 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/views/debug.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 }}