aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/panels/staticfiles.py
diff options
context:
space:
mode:
Diffstat (limited to 'debug_toolbar/panels/staticfiles.py')
-rw-r--r--debug_toolbar/panels/staticfiles.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/debug_toolbar/panels/staticfiles.py b/debug_toolbar/panels/staticfiles.py
index f212f2b..efaf841 100644
--- a/debug_toolbar/panels/staticfiles.py
+++ b/debug_toolbar/panels/staticfiles.py
@@ -163,8 +163,11 @@ class StaticFilesPanel(panels.Panel):
"""
Returns a list of paths to inspect for additional static files
"""
- dirs = getattr(settings, 'STATICFILES_DIRS', ())
- return [normpath(d) for d in dirs]
+ dirs = []
+ for finder in finders.get_finders():
+ if isinstance(finder, finders.FileSystemFinder):
+ dirs.extend(finder.locations)
+ return [(prefix, normpath(dir)) for prefix, dir in dirs]
def get_staticfiles_apps(self):
"""