| 291 | TECHNICAL_500_TEXT_TEMPLATE = """{{ exception_type }} at {{ request.path_info }} |
| 292 | {{ exception_value }} |
| 293 | |
| 294 | Request Method: {{ request.META.REQUEST_METHOD }} |
| 295 | Request URL: {{ request_protocol }}://{{ request.META.HTTP_HOST }}{{ request.path_info }} |
| 296 | |
| 297 | Server time: {{server_time|date:"r"}} |
| 298 | Django Version: {{ django_version_info }} |
| 299 | Python Version: {{ sys_version_info }} |
| 300 | Python Path: {{ sys_path }} |
| 301 | Python Executable: {{ sys_executable }} |
| 302 | Installed Applications: |
| 303 | {{ settings.INSTALLED_APPS|pprint }} |
| 304 | Installed Middleware: |
| 305 | {{ settings.MIDDLEWARE_CLASSES|pprint }} |
| 306 | |
| 307 | {% if template_does_not_exist %}Template Loader Error: |
| 308 | {% if loader_debug_info %}Django tried loading these templates, in this order: |
| 309 | {% for loader in loader_debug_info %}Using loader {{ loader.loader }}: |
| 310 | {% for t in loader.templates %}{{ t.name }} (File {% if t.exists %}exists{% else %}does not exist{% endif %}) |
| 311 | {% endfor %}{% endfor %} |
| 312 | {% else %}Django couldn't find any templates because your TEMPLATE_LOADERS setting is empty! |
| 313 | {% endif %} |
| 314 | {% endif %}{% if template_info %} |
| 315 | Template error: |
| 316 | In template {{ template_info.name }}, error at line {{ template_info.line }} |
| 317 | {{ template_info.message }}{% for source_line in template_info.source_lines %}{% ifequal source_line.0 template_info.line %} |
| 318 | {{ source_line.0 }} : {{ template_info.before }} {{ template_info.during }} {{ template_info.after }} |
| 319 | {% else %} |
| 320 | {{ source_line.0 }} : {{ source_line.1 }} |
| 321 | {% endifequal %}{% endfor %}{% endif %} |
| 322 | Traceback: |
| 323 | {% for frame in frames %}File "{{ frame.filename }}" in {{ frame.function }} |
| 324 | {% if frame.context_line %} {{ frame.lineno }}. {{ frame.context_line }}{% endif %} |
| 325 | {% endfor %} |
| 326 | Exception Type: {{ exception_type }} at {{ request.path_info }} |
| 327 | Exception Value: {{ exception_value }} |
| 328 | |
| 329 | Request information: |
| 330 | GET:{% for k, v in request.GET.items %} |
| 331 | {{ k }} = {{ v|stringformat:"r" }}{% empty %} No GET data{% endfor %} |
| 332 | |
| 333 | POST:{% for k, v in request.POST.items %} |
| 334 | {{ k }} = {{ v|stringformat:"r" }}{% empty %} No POST data{% endfor %} |
| 335 | |
| 336 | FILES:{% for k, v in request.FILES.items %} |
| 337 | {{ k }} = {{ v|stringformat:"r" }}{% empty %} No FILES data{% endfor %} |
| 338 | |
| 339 | COOKIES:{% for k, v in request.COOKIES.items %} |
| 340 | {{ k }} = {{ v|stringformat:"r" }}{% empty %} No cookie data{% endfor %} |
| 341 | |
| 342 | META:{% for k, v in request.META.items|dictsort:"0" %} |
| 343 | {{ k }} = {{ v|stringformat:"r" }}{% endfor %} |
| 344 | |
| 345 | Settings: |
| 346 | Using settings module {{ settings.SETTINGS_MODULE }}{% for k, v in settings.items|dictsort:"0" %} |
| 347 | {{ k }} = {{ v|stringformat:"r" }}{% endfor %} |
| 348 | |
| 349 | You're seeing this error because you have DEBUG = True in your |
| 350 | Django settings file. Change that to False, and Django will |
| 351 | display a standard 500 page. |
| 352 | """ |
| 353 | |