aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/panels/staticfiles.py
diff options
context:
space:
mode:
authorAymeric Augustin2014-01-08 21:36:01 +0100
committerAymeric Augustin2014-01-08 21:40:57 +0100
commitc4224327f5e855d472d6f07316f374d209238411 (patch)
tree188bc9a7992c4b11fa52014169d7e72060832776 /debug_toolbar/panels/staticfiles.py
parentc11b64c598db64d10e4d316a6fde433fc5d20aed (diff)
downloaddjango-debug-toolbar-c4224327f5e855d472d6f07316f374d209238411.tar.bz2
Test properly for django.contrib.staticfiles on Django 1.7.
The test in the staticfiles panel was redundant since the debug toolbar now requires staticfiles.
Diffstat (limited to 'debug_toolbar/panels/staticfiles.py')
-rw-r--r--debug_toolbar/panels/staticfiles.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/debug_toolbar/panels/staticfiles.py b/debug_toolbar/panels/staticfiles.py
index efaf841..daf8909 100644
--- a/debug_toolbar/panels/staticfiles.py
+++ b/debug_toolbar/panels/staticfiles.py
@@ -6,7 +6,6 @@ except ImportError:
threading = None
from django.conf import settings
-from django.core.exceptions import ImproperlyConfigured
from django.core.files.storage import get_storage_class
from django.contrib.staticfiles import finders, storage
from django.contrib.staticfiles.templatetags import staticfiles
@@ -102,13 +101,6 @@ class StaticFilesPanel(panels.Panel):
storage.staticfiles_storage = staticfiles.staticfiles_storage = _original_storage
@property
- def has_content(self):
- if "django.contrib.staticfiles" not in settings.INSTALLED_APPS:
- raise ImproperlyConfigured("Could not find staticfiles in "
- "INSTALLED_APPS setting.")
- return True
-
- @property
def num_used(self):
return len(self._paths[threading.currentThread()])