aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar
diff options
context:
space:
mode:
Diffstat (limited to 'debug_toolbar')
-rw-r--r--debug_toolbar/panels/template.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/debug_toolbar/panels/template.py b/debug_toolbar/panels/template.py
index 022a41f..fa85cb8 100644
--- a/debug_toolbar/panels/template.py
+++ b/debug_toolbar/panels/template.py
@@ -1,4 +1,6 @@
+from os.path import normpath
from pprint import pformat
+
from django.conf import settings
from django.core.signals import request_started
from django.dispatch import Signal
@@ -70,7 +72,7 @@ class TemplateDebugPanel(DebugPanel):
template_context.append(info)
context = {
'templates': template_context,
- 'template_dirs': settings.TEMPLATE_DIRS,
+ 'template_dirs': [normpath(x) for x in settings.TEMPLATE_DIRS],
'context_processors': self.context_processors,
}
return render_to_string('debug_toolbar/panels/templates.html', context)