aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/templates
diff options
context:
space:
mode:
authorAymeric Augustin2013-11-01 13:15:33 +0100
committerAymeric Augustin2013-11-01 13:15:33 +0100
commit842ed8a0e9d4e4ccadd6114147f8e2805b0a251c (patch)
treeaf63355537002c1137b9baa37106611bc195cfdd /debug_toolbar/templates
parent6c88b70d95c094c22e13e656e29fd7cddf40df64 (diff)
downloaddjango-debug-toolbar-842ed8a0e9d4e4ccadd6114147f8e2805b0a251c.tar.bz2
Show all HTTP headers in the headers panel.
Show a relevant subset of the WSGI environ separately. Fix #62.
Diffstat (limited to 'debug_toolbar/templates')
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/headers.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/headers.html b/debug_toolbar/templates/debug_toolbar/panels/headers.html
index 981b847..6b057e9 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/headers.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/headers.html
@@ -1,4 +1,7 @@
{% load i18n %}
+
+<h4>{% trans "HTTP Headers" %}</h4>
+
<table>
<thead>
<tr>
@@ -15,3 +18,24 @@
{% endfor %}
</tbody>
</table>
+
+<h4>{% trans "WSGI environ" %}</h4>
+
+<p>{% trans "Since the WSGI environ inherits the environment of the server, only a subset is shown below." %}</p>
+
+<table>
+ <thead>
+ <tr>
+ <th>{% trans "Key" %}</th>
+ <th>{% trans "Value" %}</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for key, value in environ.items %}
+ <tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
+ <td>{{ key|escape }}</td>
+ <td>{{ value|escape }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+</table>