Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #823 - cleaned up invalid HTML in debug error template. Thanks,…

… Sune

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1273 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit bb505a87ac473250dbff48ac8390013461aa7f1b 1 parent b160356
Jacob Kaplan-Moss jacobian authored
Showing with 10 additions and 8 deletions.
  1. +10 −8 django/views/debug.py
18 django/views/debug.py
View
@@ -145,6 +145,7 @@ def _get_lines_from_file(filename, lineno, context_lines):
#requestinfo h3 { margin-bottom:-1em; }
</style>
<script type="text/javascript">
+ //<!--
function getElementsByClassName(oElm, strTagName, strClassName){
// Written by Jonathan Snook, http://www.snook.ca/jon; Add-ons by Robert Nyman, http://www.robertnyman.com
var arrElements = (strTagName == "*" && document.all)? document.all :
@@ -188,6 +189,7 @@ def _get_lines_from_file(filename, lineno, context_lines):
s.innerHTML = s.innerHTML == uarr ? darr : uarr;
return false;
}
+ //-->
</script>
</head>
<body>
@@ -276,7 +278,7 @@ def _get_lines_from_file(filename, lineno, context_lines):
<th>Value</th>
</tr>
</thead>
- </tbody>
+ <tbody>
{% for var in request.GET.items %}
<tr>
<td>{{ var.0 }}</td>
@@ -286,7 +288,7 @@ def _get_lines_from_file(filename, lineno, context_lines):
</tbody>
</table>
{% else %}
- <p>No GET data<p>
+ <p>No GET data</p>
{% endif %}
<h3 id="post-info">POST</h3>
@@ -298,7 +300,7 @@ def _get_lines_from_file(filename, lineno, context_lines):
<th>Value</th>
</tr>
</thead>
- </tbody>
+ <tbody>
{% for var in request.POST.items %}
<tr>
<td>{{ var.0 }}</td>
@@ -308,7 +310,7 @@ def _get_lines_from_file(filename, lineno, context_lines):
</tbody>
</table>
{% else %}
- <p>No POST data<p>
+ <p>No POST data</p>
{% endif %}
<h3 id="cookie-info">COOKIES</h3>
@@ -320,7 +322,7 @@ def _get_lines_from_file(filename, lineno, context_lines):
<th>Value</th>
</tr>
</thead>
- </tbody>
+ <tbody>
{% for var in request.COOKIES.items %}
<tr>
<td>{{ var.0 }}</td>
@@ -330,7 +332,7 @@ def _get_lines_from_file(filename, lineno, context_lines):
</tbody>
</table>
{% else %}
- <p>No cookie data<p>
+ <p>No cookie data</p>
{% endif %}
<h3 id="meta-info">META</h3>
@@ -341,7 +343,7 @@ def _get_lines_from_file(filename, lineno, context_lines):
<th>Value</th>
</tr>
</thead>
- </tbody>
+ <tbody>
{% for var in request.META.items|dictsort:"0" %}
<tr>
<td>{{ var.0 }}</td>
@@ -360,7 +362,7 @@ def _get_lines_from_file(filename, lineno, context_lines):
<th>Value</th>
</tr>
</thead>
- </tbody>
+ <tbody>
{% for var in settings.items|dictsort:"0" %}
<tr>
<td>{{ var.0 }}</td>
Please sign in to comment.
Something went wrong with that request. Please try again.