diff options
| author | Rob Hudson | 2009-04-02 08:32:55 -0700 |
|---|---|---|
| committer | Rob Hudson | 2009-04-02 08:32:55 -0700 |
| commit | 1228a99da10a71c97b82c240350ee8b00c0c2d0c (patch) | |
| tree | f6fe1a1f0071dc241ec5727ad71bec71fd6f1d6a /debug_toolbar/views.py | |
| parent | b9b0cbe718c6a1736af1fa86452ffc4af28b64f4 (diff) | |
| download | django-debug-toolbar-1228a99da10a71c97b82c240350ee8b00c0c2d0c.tar.bz2 | |
Moving media so they are "namespaced" like templates.
Diffstat (limited to 'debug_toolbar/views.py')
| -rw-r--r-- | debug_toolbar/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debug_toolbar/views.py b/debug_toolbar/views.py index 0fb4168..9123a00 100644 --- a/debug_toolbar/views.py +++ b/debug_toolbar/views.py @@ -18,12 +18,12 @@ class InvalidSQLError(Exception): self.value = value def __str__(self): return repr(self.value) - + def debug_media(request, path): root = getattr(settings, 'DEBUG_TOOLBAR_MEDIA_ROOT', None) if root is None: parent = os.path.abspath(os.path.dirname(__file__)) - root = os.path.join(parent, 'media') + root = os.path.join(parent, 'media', 'debug_toolbar') return django.views.static.serve(request, path, root) def sql_select(request): |
