summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-11-23 23:12:24 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-11-23 23:12:24 +0000
commit21f2d842fafcc710598151d69649be67ca09adb1 (patch)
tree51329e98333d07b0d62874201e3ddb9c875b1a45 /django
parent5d863f1fbd26537a8bca2920bc591279d15fbdf1 (diff)
Added Wilson's CSS tweaks to the template error screen
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1380 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r--django/views/debug.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/django/views/debug.py b/django/views/debug.py
index 012d7f9a75..d6974b5732 100644
--- a/django/views/debug.py
+++ b/django/views/debug.py
@@ -172,6 +172,8 @@ TECHNICAL_500_TEMPLATE = """
table.vars td, table.req td { font-family:monospace; }
table td.code { width:100%; }
table td.code div { overflow:hidden; }
+ table.source th { color:#666; }
+ table.source td { font-family:monospace; white-space:pre; border-bottom:1px solid #eee; }
ul.traceback { list-style-type:none; }
ul.traceback li.frame { margin-bottom:1em; }
div.context { margin: 10px 0; }
@@ -184,14 +186,14 @@ TECHNICAL_500_TEMPLATE = """
#summary { background: #ffc; }
#summary h2 { font-weight: normal; color: #666; }
#explanation { background:#eee; }
+ #template { background:#f6f6f6; }
#traceback { background:#eee; }
#requestinfo { background:#f6f6f6; padding-left:120px; }
#summary table { border:none; background:transparent; }
#requestinfo h2, #requestinfo h3 { position:relative; margin-left:-100px; }
#requestinfo h3 { margin-bottom:-1em; }
- table.source td { font-family: monospace; white-space: pre; }
- span.specific { background:#ffcab7; }
.error { background: #ffc; }
+ .specific { color:#cc3300; font-weight:bold; }
</style>
<script type="text/javascript">
//<!--