Back to Django

{% if exception_type %}{{ exception_type }}{% else %}Report{% endif %} {% if request %} at {{ request.path_info }}{% endif %}

django/views/templates/technical_500.html

6.1a16.1 KB
Original Source

{% if unicode_hint %}

Unicode error hint

The string that could not be encoded/decoded was: {{ unicode_hint }}

{% endif %} {% 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 %}

Error during template rendering

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 %} {% if frames %}

Traceback{% if not is_email %} Switch to copy-and-paste view{% endif %}

{% 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 %} {{ 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 %}

Local Vars

{% else %} #Local vars {% endif %}

VariableValue
{% for var in frame.varsdictsort: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 %}

Request information

{% if request %} {% if user_str %}

USER

{{ user_str }}

{% endif %}

GET

{% if request.GET %}

VariableValue
{% for k, v in request_GET_items %}{{ k }}
{{ v|pprint }}

| {% endfor %} {% else %}

No GET data

{% endif %}

POST

{% if filtered_POST_items %}

VariableValue
{% for k, v in filtered_POST_items %}{{ k }}
{{ v|pprint }}

| {% endfor %} {% else %}

No POST data

{% endif %}

FILES

{% if request.FILES %}

VariableValue
{% for k, v in request_FILES_items %}{{ k }}
{{ v|pprint }}

| {% endfor %} {% else %}

No FILES data

{% endif %}

COOKIES

{% if request.COOKIES %}

VariableValue
{% for k, v in request_COOKIES_items %}{{ k }}
{{ v|pprint }}

| {% endfor %} {% else %}

No cookie data

{% endif %}

META

VariableValue
{% for k, v in request_meta.itemsdictsort:0 %}
{{ v|pprint }}

| {% endfor %} {% else %}

Request data not supplied

{% endif %}

Settings

Using settings module {{ settings.SETTINGS_MODULE }}

SettingValue
{% for k, v in settings.itemsdictsort:0 %}
{{ v|pprint }}

| {% endfor %}