From 6e41146140e85ca74a13fa0f7f9ae868a83ea31e Mon Sep 17 00:00:00 2001 From: Rob Hudson Date: Tue, 9 Sep 2008 23:27:48 -0700 Subject: Adding a templates panel that shows the templates used during a request/response cycle. Also lists settings.TEMPLATE_DIRS. --- .../templates/debug_toolbar/panels/templates.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 debug_toolbar/templates/debug_toolbar/panels/templates.html (limited to 'debug_toolbar/templates') 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 @@ +

Template path(s):

+{% if template_dirs %} +
    + {% for template in template_dirs %} +
  1. {{ template }}
  2. + {% endfor %} +
+{% else %} + None +{% endif %} +

Templates Used

+{% if templates %} +
+{% for template in templates %} +
{{ template.0 }}
+
{{ template.1 }}
+{% endfor %} +
+{% else %} + None +{% endif %} \ No newline at end of file -- cgit v1.2.3