Fix debug screen.

This commit is contained in:
Edward Betts 2023-09-11 11:38:45 +05:30
parent b6f0c88320
commit a7eb8e930c
2 changed files with 9 additions and 39 deletions

View file

@ -12,19 +12,12 @@
<pre>{{ exception }}</pre>
</div>
{% set body %}
URL: {{ request.url }}
{{ tb.plaintext | safe }}
{% endset %}
<h2 class="traceback">Traceback <em>(most recent call last)</em></h2>
{{ summary | safe }}
{#
<p>Error in function "{{ last_frame.function_name }}": {{ last_frame_args | pprint }}</p>
<pre>{{ last_frame.locals | pprint }}</pre>
#}
<p>Error in function "{{ last_frame.f_code.co_name }}": {{ last_frame_args | pprint }}</p>
<pre>{{ last_frame.f_locals | pprint }}</pre>
</div>
{% endblock %}