diff options
| author | Alex Gaynor | 2008-10-01 16:00:25 -0400 |
|---|---|---|
| committer | Alex Gaynor | 2008-10-01 16:00:25 -0400 |
| commit | 5aef92d3317e63d326d99cf81e99e8bbc6fd84b7 (patch) | |
| tree | 5478425f76db2138af4983f29adb0415eefb481c | |
| parent | 4a31e7fc96063b7bff4a95a021a896515639a153 (diff) | |
| download | django-debug-toolbar-5aef92d3317e63d326d99cf81e99e8bbc6fd84b7.tar.bz2 | |
used os.path.normpath on templatdirs, this makes it looks cleaner, particularly removing ...
| -rw-r--r-- | debug_toolbar/panels/template.py | 4 |
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) |
