diff options
| author | Rob Hudson | 2008-09-09 23:27:48 -0700 |
|---|---|---|
| committer | Rob Hudson | 2008-09-09 23:27:48 -0700 |
| commit | 6e41146140e85ca74a13fa0f7f9ae868a83ea31e (patch) | |
| tree | 72f46e0c4fc038498a1dcc2021388d71a9cd3fe1 /debug_toolbar/templates | |
| parent | 338c7a0a38996d2ffb3e192b63646a6c23dc5bba (diff) | |
| download | django-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.html | 21 |
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 |
