diff options
| author | Aymeric Augustin | 2013-11-24 12:05:28 +0100 |
|---|---|---|
| committer | Aymeric Augustin | 2013-11-24 12:09:47 +0100 |
| commit | 1c1b4428642254f4e6b05e93bd135b894f708eeb (patch) | |
| tree | 0fc76a8c22a4dc25a5b48143a19947f390e3c28b /debug_toolbar/toolbar.py | |
| parent | db2de5b85ac1ae099b91bae402d21d6ea36ef306 (diff) | |
| download | django-debug-toolbar-1c1b4428642254f4e6b05e93bd135b894f708eeb.tar.bz2 | |
Take advantage of django.contrib.staticfiles to serve static files.
It is the de facto standard nowadays and there's no good reason not to use it.
Diffstat (limited to 'debug_toolbar/toolbar.py')
| -rw-r--r-- | debug_toolbar/toolbar.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/debug_toolbar/toolbar.py b/debug_toolbar/toolbar.py index de9d69d..d50ad52 100644 --- a/debug_toolbar/toolbar.py +++ b/debug_toolbar/toolbar.py @@ -6,7 +6,6 @@ from __future__ import absolute_import, unicode_literals import uuid -from django.conf import settings from django.conf.urls import patterns, url from django.core.exceptions import ImproperlyConfigured from django.template.loader import render_to_string @@ -21,10 +20,7 @@ class DebugToolbar(object): def __init__(self, request): self.request = request self.config = dt_settings.CONFIG.copy() - self.template_context = { - 'STATIC_URL': settings.STATIC_URL, - 'toolbar': self, - } + self.template_context = {'toolbar': self} self._panels = SortedDict() for panel_class in self.get_panel_classes(): panel_instance = panel_class(self, context=self.template_context) |
