=== django/views/debug.py
==================================================================
|
|
|
101 | 101 | # always work even if the template loader is broken. |
102 | 102 | # |
103 | 103 | |
104 | | TECHNICAL_500_TEMPLATE = """ |
105 | | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
106 | | <html lang="en"> |
| 104 | TECHNICAL_500_TEMPLATE = """<?xml version='1.0' encoding='utf-8'?> |
| 105 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
| 106 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| 107 | |
| 108 | <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> |
107 | 109 | <head> |
108 | 110 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
109 | 111 | <meta name="robots" content="NONE,NOARCHIVE" /> |
… |
… |
|
144 | 146 | #requestinfo h2, #requestinfo h3 { position:relative; margin-left:-100px; } |
145 | 147 | #requestinfo h3 { margin-bottom:-1em; } |
146 | 148 | </style> |
147 | | <script type="text/javascript"> |
| 149 | <script type="text/javascript">//<!-- |
148 | 150 | function getElementsByClassName(oElm, strTagName, strClassName){ |
149 | 151 | // Written by Jonathan Snook, http://www.snook.ca/jon; Add-ons by Robert Nyman, http://www.robertnyman.com |
150 | 152 | var arrElements = (strTagName == "*" && document.all)? document.all : |
… |
… |
|
188 | 190 | s.innerHTML = s.innerHTML == uarr ? darr : uarr; |
189 | 191 | return false; |
190 | 192 | } |
| 193 | // --> |
191 | 194 | </script> |
192 | 195 | </head> |
193 | 196 | <body> |
… |
… |
|
276 | 279 | <th>Value</th> |
277 | 280 | </tr> |
278 | 281 | </thead> |
279 | | </tbody> |
| 282 | <tbody> |
280 | 283 | {% for var in request.GET.items %} |
281 | 284 | <tr> |
282 | 285 | <td>{{ var.0 }}</td> |
… |
… |
|
286 | 289 | </tbody> |
287 | 290 | </table> |
288 | 291 | {% else %} |
289 | | <p>No GET data<p> |
| 292 | <p>No GET data</p> |
290 | 293 | {% endif %} |
291 | 294 | |
292 | 295 | <h3 id="post-info">POST</h3> |
… |
… |
|
298 | 301 | <th>Value</th> |
299 | 302 | </tr> |
300 | 303 | </thead> |
301 | | </tbody> |
| 304 | <tbody> |
302 | 305 | {% for var in request.POST.items %} |
303 | 306 | <tr> |
304 | 307 | <td>{{ var.0 }}</td> |
… |
… |
|
308 | 311 | </tbody> |
309 | 312 | </table> |
310 | 313 | {% else %} |
311 | | <p>No POST data<p> |
| 314 | <p>No POST data</p> |
312 | 315 | {% endif %} |
313 | 316 | |
314 | 317 | <h3 id="cookie-info">COOKIES</h3> |
… |
… |
|
320 | 323 | <th>Value</th> |
321 | 324 | </tr> |
322 | 325 | </thead> |
323 | | </tbody> |
| 326 | <tbody> |
324 | 327 | {% for var in request.COOKIES.items %} |
325 | 328 | <tr> |
326 | 329 | <td>{{ var.0 }}</td> |
… |
… |
|
330 | 333 | </tbody> |
331 | 334 | </table> |
332 | 335 | {% else %} |
333 | | <p>No cookie data<p> |
| 336 | <p>No cookie data</p> |
334 | 337 | {% endif %} |
335 | 338 | |
336 | 339 | <h3 id="meta-info">META</h3> |
… |
… |
|
341 | 344 | <th>Value</th> |
342 | 345 | </tr> |
343 | 346 | </thead> |
344 | | </tbody> |
| 347 | <tbody> |
345 | 348 | {% for var in request.META.items|dictsort:"0" %} |
346 | 349 | <tr> |
347 | 350 | <td>{{ var.0 }}</td> |
… |
… |
|
360 | 363 | <th>Value</th> |
361 | 364 | </tr> |
362 | 365 | </thead> |
363 | | </tbody> |
| 366 | <tbody> |
364 | 367 | {% for var in settings.items|dictsort:"0" %} |
365 | 368 | <tr> |
366 | 369 | <td>{{ var.0 }}</td> |
… |
… |
|
449 | 452 | </div> |
450 | 453 | </body> |
451 | 454 | </html> |
452 | | """ |
453 | | No newline at end of file |
| 455 | """ |