django/views/templates/technical_500.html
{% if unicode_hint %}
The string that could not be encoded/decoded was: {{ unicode_hint }}
{% endif %} {% if template_does_not_exist %}
{% if postmortem %}
Django tried loading these templates, in this order:
{% for entry in postmortem %}
Using engine {{ entry.backend.name }}:
{% if entry.tried %} {% for attempt in entry.tried %} - {{ attempt.0.loader_name }}: {{ attempt.0.name }} ({{ attempt.1 }})
{% endfor %} {% else %} - This engine did not provide a list of tried templates.
{% endif %}
{% endfor %} {% else %}
No templates were found because your 'TEMPLATES' setting is not configured.
{% endif %} {% endif %} {% if template_info %}
In template {{ template_info.name }}, error at line {{ template_info.line }}
{% for source_line in template_info.source_lines %} {% if source_line.0 == template_info.line %} | {{ source_line.0 }} | {{ template_info.before }}{{ template_info.during }}{{ template_info.after }} | {% else %} | {{ source_line.0 }} | {{ source_line.1 }} | {% endif %} {% endfor %}
{% endif %} {% if frames %}
{% for frame in frames %} {% ifchanged frame.exc_cause %}{% if frame.exc_cause %} -
{% endif %}{% endifchanged %} - {% if frame.tb %} {{ frame.filename }}, line {{ frame.lineno }}, in {{ frame.function }} {% elif forloop.first %} None {% else %} Traceback: None {% endif %} {% if frame.context_line %}
{% if frame.pre_context and not is_email %}
{% for line in frame.pre_context %} 1.
{{ line }}
{% endfor %} {% endif %} 1.
{{ frame.context_line }}{{ frame.colno }}
{% if not is_email %} …{% endif %}
{% if frame.post_context and not is_email %} {% for line in frame.post_context %} 1.
{{ line }}
{% endfor %} {% endif %} {% endif %} {% if frame.vars %} {% if is_email %}
{% else %} #Local vars {% endif %}
| Variable | Value |
|---|---|
| {% for var in frame.vars | dictsort:0 %} |
{{ var.1 }}
| {% endfor %} {% if not is_email %}{% endif %} {% endif %} {% endfor %}
{% if not is_email %} Environment: {% if request %} Request Method: {{ request.META.REQUEST_METHOD }} Request URL: {{ request_insecure_uri }} {% endif %} Django Version: {{ django_version_info }} Python Version: {{ sys_version_info }} Installed Applications: {{ settings.INSTALLED_APPS|pprint }} Installed Middleware: {{ settings.MIDDLEWARE|pprint }} {% if template_does_not_exist %}Template loader postmortem {% if postmortem %}Django tried loading these templates, in this order: {% for entry in postmortem %} Using engine {{ entry.backend.name }}: {% if entry.tried %}{% for attempt in entry.tried %} * {{ attempt.0.loader_name }}: {{ attempt.0.name }} ({{ attempt.1 }}) {% endfor %}{% else %} This engine did not provide a list of tried templates. {% endif %}{% endfor %} {% else %}No templates were found because your 'TEMPLATES' setting is not configured. {% endif %}{% endif %}{% if template_info %} Template error: In template {{ template_info.name }}, error at line {{ template_info.line }} {{ template_info.message|force_escape }} {% for source_line in template_info.source_lines %}{% if source_line.0 == template_info.line %} {{ source_line.0 }} : {{ template_info.before }} {{ template_info.during }} {{ template_info.after }}{% else %} {{ source_line.0 }} : {{ source_line.1 }}{% endif %}{% endfor %}{% endif %} Traceback (most recent call last):{% for frame in frames %} {% ifchanged frame.exc_cause %}{% if frame.exc_cause %}{% if frame.exc_cause_explicit %} The above exception ({{ frame.exc_cause|force_escape }}) was the direct cause of the following exception: {% else %} During handling of the above exception ({{ frame.exc_cause|force_escape }}), another exception occurred: {% endif %}{% endif %}{% endifchanged %} {% if frame.tb %}File "{{ frame.filename }}"{% if frame.context_line %}, line {{ frame.lineno }}{% endif %}, in {{ frame.function }} {% if frame.context_line %} {% spaceless %}{{ frame.context_line }}{% endspaceless %}{{ frame.tb_area_colno }}{% endif %}{% elif forloop.first %}None{% else %}Traceback: None{% endif %}{% endfor %} Exception Type: {{ exception_type }}{% if request %} at {{ request.path_info }}{% endif %} Exception Value: {{ exception_value|force_escape }}{% if exception_notes %}{{ exception_notes }}{% endif %}
{% endif %} {% endif %}
{% if request %} {% if user_str %}
{{ user_str }}
{% endif %}
{% if request.GET %}
| Variable | Value |
|---|---|
| {% for k, v in request_GET_items %} | {{ k }} |
{{ v|pprint }}
| {% endfor %} {% else %}
No GET data
{% endif %}
{% if filtered_POST_items %}
| Variable | Value |
|---|---|
| {% for k, v in filtered_POST_items %} | {{ k }} |
{{ v|pprint }}
| {% endfor %} {% else %}
No POST data
{% endif %}
{% if request.FILES %}
| Variable | Value |
|---|---|
| {% for k, v in request_FILES_items %} | {{ k }} |
{{ v|pprint }}
| {% endfor %} {% else %}
No FILES data
{% endif %}
{% if request.COOKIES %}
| Variable | Value |
|---|---|
| {% for k, v in request_COOKIES_items %} | {{ k }} |
{{ v|pprint }}
| {% endfor %} {% else %}
No cookie data
{% endif %}
| Variable | Value |
|---|---|
| {% for k, v in request_meta.items | dictsort:0 %} |
{{ v|pprint }}
| {% endfor %} {% else %}
Request data not supplied
{% endif %}
{{ settings.SETTINGS_MODULE }}| Setting | Value |
|---|---|
| {% for k, v in settings.items | dictsort:0 %} |
{{ v|pprint }}
| {% endfor %}