aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/templates
diff options
context:
space:
mode:
authorRob Hudson2008-09-09 23:27:48 -0700
committerRob Hudson2008-09-09 23:27:48 -0700
commit6e41146140e85ca74a13fa0f7f9ae868a83ea31e (patch)
tree72f46e0c4fc038498a1dcc2021388d71a9cd3fe1 /debug_toolbar/templates
parent338c7a0a38996d2ffb3e192b63646a6c23dc5bba (diff)
downloaddjango-debug-toolbar-6e41146140e85ca74a13fa0f7f9ae868a83ea31e.tar.bz2
Adding a templates panel that shows the templates used during a
request/response cycle. Also lists settings.TEMPLATE_DIRS.
Diffstat (limited to 'debug_toolbar/templates')
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/templates.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/templates.html b/debug_toolbar/templates/debug_toolbar/panels/templates.html
new file mode 100644
index 0000000..58904be
--- /dev/null
+++ b/debug_toolbar/templates/debug_toolbar/panels/templates.html
@@ -0,0 +1,21 @@
+<h3>Template path(s):</h3>
+{% if template_dirs %}
+ <ol>
+ {% for template in template_dirs %}
+ <li>{{ template }}</li>
+ {% endfor %}
+ </ol>
+{% else %}
+ None
+{% endif %}
+<h3>Templates Used</h3>
+{% if templates %}
+<dl>
+{% for template in templates %}
+ <dt><strong>{{ template.0 }}</strong></dt>
+ <dd><samp>{{ template.1 }}</samp></dd>
+{% endfor %}
+</dl>
+{% else %}
+ None
+{% endif %} \ No newline at end of file