diff options
| author | Jannis Leidel | 2012-08-27 03:37:44 -0700 |
|---|---|---|
| committer | Jannis Leidel | 2012-08-27 03:37:44 -0700 |
| commit | 1432944152d5fa6005e29419dc160a7602a26cee (patch) | |
| tree | 0198cb90ff0088d718b5c3d9e11f1893f37e742f /debug_toolbar/views.py | |
| parent | 119874f649e67e04ded3847fc166b9798af26a78 (diff) | |
| parent | a4480a2f810fd8a21da1d2e637d4bfcf10357605 (diff) | |
| download | django-debug-toolbar-1432944152d5fa6005e29419dc160a7602a26cee.tar.bz2 | |
Merge pull request #313 from graingert/master
Use links to static JS and CSS, using {{ STATIC_URL }}
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. |
