aboutsummaryrefslogtreecommitdiffstats
path: root/tests/settings.py
diff options
context:
space:
mode:
authorJannis Leidel2013-12-23 12:43:49 +0100
committerJannis Leidel2013-12-23 12:43:49 +0100
commit4225671177f9f65e873ddbab373e5968c2afa8fc (patch)
tree7c7b8f5280ed84d49af311a56e1039706ce9029a /tests/settings.py
parent9298aff6ed93cd2463730f31c1576bf9e396084e (diff)
downloaddjango-debug-toolbar-4225671177f9f65e873ddbab373e5968c2afa8fc.tar.bz2
Fix staticfiles panel to work with prefixed STATICFILES_DIRS.
Closes #503 and #507. Many thanks to Alexander Clausen (@sk1p) for the inspiration for the patch.
Diffstat (limited to 'tests/settings.py')
-rw-r--r--tests/settings.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/settings.py b/tests/settings.py
index 68346ff..70049b4 100644
--- a/tests/settings.py
+++ b/tests/settings.py
@@ -42,8 +42,10 @@ ROOT_URLCONF = 'tests.urls'
STATIC_URL = '/static/'
-STATICFILES_DIRS = [os.path.join(BASE_DIR, 'tests', 'additional_static')]
-
+STATICFILES_DIRS = [
+ os.path.join(BASE_DIR, 'tests', 'additional_static'),
+ ("prefix", os.path.join(BASE_DIR, 'tests', 'additional_static')),
+]
# Cache and database