summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2008-08-16 12:33:36 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2008-08-16 12:33:36 +0000
commit3afa4a462691b537b38222c9869c997a0ff04a21 (patch)
tree2c75829bd406fdf773f4a4e72f8b4540afe990c1
parentceb8fc56af635445cf985eeb60e14a8763dd56cb (diff)
Fixed #8178: Cleaned up the rendering of exceptions on the error template. Thanks to Marinho Brandão for the fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8407 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/views/debug.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/views/debug.py b/django/views/debug.py
index adc1ae936e..7cd05ea913 100644
--- a/django/views/debug.py
+++ b/django/views/debug.py
@@ -328,6 +328,7 @@ TECHNICAL_500_TEMPLATE = """
.specific { color:#cc3300; font-weight:bold; }
h2 span.commands { font-size:.7em;}
span.commands a:link {color:#5E5694;}
+ pre.exception_value { font-family: sans-serif; color: #666; font-size: 1.5em; margin: 10px 0 10px 0; }
</style>
<script type="text/javascript">
//<!--
@@ -388,7 +389,7 @@ TECHNICAL_500_TEMPLATE = """
<body>
<div id="summary">
<h1>{{ exception_type }} at {{ request.path|escape }}</h1>
- <h2>{{ exception_value|escape }}</h2>
+ <pre class="exception_value">{{ exception_value|escape }}</pre>
<table class="meta">
<tr>
<th>Request Method:</th>