aboutsummaryrefslogtreecommitdiffstats
path: root/tests/settings.py
diff options
context:
space:
mode:
authorAymeric Augustin2013-12-14 12:47:28 -0800
committerAymeric Augustin2013-12-14 12:47:28 -0800
commitdbed3e7c72f930c285f17206879f6bd1d46f67a1 (patch)
tree317b063328fab25298262db1e7ae81ad50282a4a /tests/settings.py
parent59e4931d5880ed24cb49734e81c7ed538c98fa45 (diff)
parentbdbe57d6e13241f852860336f55bca0d88bd4384 (diff)
downloaddjango-debug-toolbar-dbed3e7c72f930c285f17206879f6bd1d46f67a1.tar.bz2
Merge pull request #494 from django-debug-toolbar/staticfiles
Added staticfiles panel class.
Diffstat (limited to 'tests/settings.py')
-rw-r--r--tests/settings.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/settings.py b/tests/settings.py
index 24e0cd4..68346ff 100644
--- a/tests/settings.py
+++ b/tests/settings.py
@@ -1,6 +1,8 @@
"""Django settings for tests."""
import os
+import django
+
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
@@ -40,6 +42,8 @@ ROOT_URLCONF = 'tests.urls'
STATIC_URL = '/static/'
+STATICFILES_DIRS = [os.path.join(BASE_DIR, 'tests', 'additional_static')]
+
# Cache and database
@@ -62,3 +66,6 @@ DEBUG_TOOLBAR_CONFIG = {
# Django's test client sets wsgi.multiprocess to True inappropriately
'RENDER_PANELS': False,
}
+
+if django.VERSION[:2] < (1, 6):
+ TEST_RUNNER = 'discover_runner.DiscoverRunner'