diff options
| author | Thomas Grainger | 2012-08-20 13:35:46 +0100 |
|---|---|---|
| committer | Thomas Grainger | 2012-08-20 13:35:46 +0100 |
| commit | 189668eadd3f47d8c4a03ad2953b25a3a475a127 (patch) | |
| tree | 13966da3eae4b2a2d22d895e83ba66a885740778 /debug_toolbar/views.py | |
| parent | 119874f649e67e04ded3847fc166b9798af26a78 (diff) | |
| download | django-debug-toolbar-189668eadd3f47d8c4a03ad2953b25a3a475a127.tar.bz2 | |
use links to static files rather than direct inclusion, Fixes #307
Diffstat (limited to 'debug_toolbar/views.py')
| -rw-r--r-- | debug_toolbar/views.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/debug_toolbar/views.py b/debug_toolbar/views.py index 3fa809a..be917ff 100644 --- a/debug_toolbar/views.py +++ b/debug_toolbar/views.py @@ -23,14 +23,6 @@ class InvalidSQLError(Exception): 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', 'debug_toolbar') - return django.views.static.serve(request, path, root) - - def sql_select(request): """ Returns the output of the SQL SELECT statement. |
