460 | | <table> |
461 | | <tbody> |
462 | | <tr> |
463 | | <td> |
464 | | <code> |
465 | | Traceback (most recent call last):<br/> |
466 | | {% for frame in frames %} |
467 | | File "{{ frame.filename }}" in {{ frame.function }}<br/> |
468 | | {% if frame.context_line %} |
469 | | {{ frame.lineno }}. {{ frame.context_line|escape }}<br/> |
470 | | {% endif %} |
471 | | {% endfor %}<br/> |
472 | | {{ exception_type }} at {{ request.path|escape }}<br/> |
473 | | {{ exception_value|escape }}</code> |
474 | | </td> |
475 | | </tr> |
476 | | </tbody> |
477 | | </table> |
| 463 | <input type="hidden" name="language" value="PythonConsole" /> |
| 464 | <input type="hidden" name="title" value="{{ exception_type|escape }} at {{ request.path|escape }}" /> |
| 465 | <input type="hidden" name="source" value="Django Dpaste Agent" /> |
| 466 | <input type="hidden" name="poster" value="Django" /> |
| 467 | <textarea name="content" id="traceback_area" cols="140" rows="25"> |
| 468 | Environment: |
| 469 | |
| 470 | Request Method: {{ request.META.REQUEST_METHOD }} |
| 471 | Request URL: {{ request_protocol }}://{{ request.META.HTTP_HOST }}{{ request.path|escape }} |
| 472 | Django Version: {{ django_version_info }} |
| 473 | Python Version: {{ sys_version_info }} |
| 474 | Installed Applications: |
| 475 | {{ settings.INSTALLED_APPS|pprint }} |
| 476 | Installed Middleware: |
| 477 | {{ settings.MIDDLEWARE_CLASSES|pprint }} |
| 478 | |
| 479 | {% if template_does_not_exist %}Template Loader Error: |
| 480 | {% if loader_debug_info %}Django tried loading these templates, in this order: |
| 481 | {% for loader in loader_debug_info %}Using loader {{ loader.loader }}: |
| 482 | {% for t in loader.templates %}{{ t.name }} (File {% if t.exists %}exists{% else %}does not exist{% endif %}) |
| 483 | {% endfor %}{% endfor %} |
| 484 | {% else %}Django couldn't find any templates because your TEMPLATE_LOADERS setting is empty! |
| 485 | {% endif %} |
| 486 | {% endif %}{% if template_info %} |
| 487 | Template error: |
| 488 | In template {{ template_info.name }}, error at line {{ template_info.line }} |
| 489 | {{ template_info.message }}{% for source_line in template_info.source_lines %}{% ifequal source_line.0 template_info.line %} |
| 490 | {{ source_line.0 }} : {{ template_info.before }} {{ template_info.during }} {{ template_info.after }} |
| 491 | {% else %} |
| 492 | {{ source_line.0 }} : {{ source_line.1 }} |
| 493 | {% endifequal %}{% endfor %}{% endif %} |
| 494 | Traceback: |
| 495 | {% for frame in frames %}File "{{ frame.filename|escape }}" in {{ frame.function|escape }} |
| 496 | {% if frame.context_line %} {{ frame.lineno }}. {{ frame.context_line|escape }}{% endif %} |
| 497 | {% endfor %} |
| 498 | Exception Type: {{ exception_type|escape }} at {{ request.path|escape }} |
| 499 | Exception Value: {{ exception_value|escape }} |
| 500 | </textarea> |
| 501 | <br/><br/> |