summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
Diffstat (limited to 'django')
-rw-r--r--django/views/debug.py22
1 files changed, 22 insertions, 0 deletions
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 %}
<p>No POST data</p>
{% endif %}
+ <h3 id="files-info">FILES</h3>
+ {% if request.FILES %}
+ <table class="req">
+ <thead>
+ <tr>
+ <th>Variable</th>
+ <th>Value</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for var in request.FILES.items %}
+ <tr>
+ <td>{{ var.0 }}</td>
+ <td class="code"><div>{{ var.1|pprint }}</div></td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ {% else %}
+ <p>No FILES data</p>
+ {% endif %}
+
<h3 id="cookie-info">COOKIES</h3>
{% if request.COOKIES %}