From 390832e04adf60ec1d7a084a295c125dba6c7863 Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Thu, 22 Apr 2021 16:43:26 +0100 Subject: [PATCH] Standardized formatting in technical 500 template. - Prefer use of `k` and `v` instead of `var.0` and `var.1`. - Fixed indentation of #files-info block to match adjacent blocks. --- django/views/templates/technical_500.html | 42 +++++++++++------------ 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/django/views/templates/technical_500.html b/django/views/templates/technical_500.html index 9d65346847..4031c38655 100644 --- a/django/views/templates/technical_500.html +++ b/django/views/templates/technical_500.html @@ -390,29 +390,29 @@ Exception Value: {{ exception_value|force_escape }} {% else %}

No POST data

{% endif %} +

FILES

{% if request.FILES %} - - - - - - - - {% for k, v in request_FILES_items %} - - - - - {% endfor %} - + + + + + + + + {% for k, v in request_FILES_items %} + + + + + {% endfor %} +
VariableValue
{{ k }}
{{ v|pprint }}
VariableValue
{{ k }}
{{ v|pprint }}
{% else %}

No FILES data

{% endif %} - {% if request.COOKIES %} @@ -444,10 +444,10 @@ Exception Value: {{ exception_value|force_escape }} - {% for var in request_meta.items|dictsort:0 %} + {% for k, v in request_meta.items|dictsort:0 %} - - + + {% endfor %} @@ -466,10 +466,10 @@ Exception Value: {{ exception_value|force_escape }} - {% for var in settings.items|dictsort:0 %} + {% for k, v in settings.items|dictsort:0 %} - - + + {% endfor %}
{{ var.0 }}
{{ var.1|pprint }}
{{ k }}
{{ v|pprint }}
{{ var.0 }}
{{ var.1|pprint }}
{{ k }}
{{ v|pprint }}