diff options
| author | Hrushikesh Vaidya <hrushikeshrv@gmail.com> | 2022-01-06 19:52:57 +0530 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-01-13 07:02:41 +0100 |
| commit | 6815da6e9497a9a630d9f3637a51134d868bcd5b (patch) | |
| tree | 952c856ff11b99f26b18d43c76bda9de31683586 /django/views/templates | |
| parent | 4099e6e73744ef6a609b578020219f6e4647dd7e (diff) | |
Fixed #33396 -- Added view name to technical 500 debug page.
Diffstat (limited to 'django/views/templates')
| -rw-r--r-- | django/views/templates/technical_500.html | 6 | ||||
| -rw-r--r-- | django/views/templates/technical_500.txt | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/django/views/templates/technical_500.html b/django/views/templates/technical_500.html index a0f65eb162..c09f09a19b 100644 --- a/django/views/templates/technical_500.html +++ b/django/views/templates/technical_500.html @@ -133,6 +133,12 @@ <td><span class="fname">{{ lastframe.filename }}</span>, line {{ lastframe.lineno }}, in {{ lastframe.function }}</td> </tr> {% endif %} +{% if raising_view_name %} + <tr> + <th>Raised during:</th> + <td>{{ raising_view_name }}</td> + </tr> +{% endif %} <tr> <th>Python Executable:</th> <td>{{ sys_executable }}</td> diff --git a/django/views/templates/technical_500.txt b/django/views/templates/technical_500.txt index 5c86a3139f..0747de5c85 100644 --- a/django/views/templates/technical_500.txt +++ b/django/views/templates/technical_500.txt @@ -35,6 +35,7 @@ Traceback (most recent call last): {% endfor %} {% if exception_type %}Exception Type: {{ exception_type }}{% if request %} at {{ request.path_info }}{% endif %} {% if exception_value %}Exception Value: {{ exception_value }}{% endif %}{% endif %}{% endif %} +{% if raising_view_name %}Raised during: {{ raising_view_name }}{% endif %} {% if request %}Request information: {% if user_str %}USER: {{ user_str }}{% endif %} |
