From cc5477df890f66854275c2b3ce46e8457fe8a6b2 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Tue, 31 Mar 2009 17:10:06 +0000 Subject: Fixed #7529: added a FILES section to the debug view. As a bonus, we've now got the start of a suite of tests for the debug views. Thanks, Alex Gaynor. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10271 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/views/debug.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'django') diff --git a/django/views/debug.py b/django/views/debug.py index f2288cf173..650aebae10 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -611,6 +611,28 @@ Exception Value: {{ exception_value|escape }} {% else %}

No POST data

{% endif %} +

FILES

+ {% if request.FILES %} + + + + + + + + + {% for var in request.FILES.items %} + + + + + {% endfor %} + +
VariableValue
{{ var.0 }}
{{ var.1|pprint }}
+ {% else %} +

No FILES data

+ {% endif %} + {% if request.COOKIES %} -- cgit v1.3