Ticket #842: django-500-error.py

File django-500-error.py, 804 bytes (added by rjwittams, 19 years ago)
Line 
1=== debug.py
2==================================================================
3--- debug.py (revision 3401)
4+++ debug.py (local)
5@@ -25,7 +25,7 @@
6 'filename' : filename,
7 'function' : function,
8 'lineno' : lineno,
9- 'vars' : tb.tb_frame.f_locals,
10+ 'vars' : tb.tb_frame.f_locals.items(),
11 'id' : id(tb),
12 'pre_context' : pre_context,
13 'context_line' : context_line,
14@@ -253,7 +253,7 @@
15 </tr>
16 </thead>
17 <tbody>
18- {% for var in frame.vars.items|dictsort:"0" %}
19+ {% for var in frame.vars|dictsort:"0" %}
20 <tr>
21 <td>{{ var.0 }}</td>
22 <td class="code"><div>{{ var.1|pprint|escape }}</div></td>
Back to Top