From 1c1b4428642254f4e6b05e93bd135b894f708eeb Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sun, 24 Nov 2013 12:05:28 +0100 Subject: 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. --- debug_toolbar/toolbar.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'debug_toolbar/toolbar.py') 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) -- cgit v1.2.3