This should speed up tests slightly and remove an unnecessary
dependency.
Signed-off-by: Stephen Finucane <stephen@that.guru>
except ImportError:
dbbackup = None
+try:
+ import debug_toolbar
+except ImportError:
+ debug_toolbar = None
+
#
# Core settings
# https://docs.djangoproject.com/en/1.11/ref/settings/#core-settings
# django-debug-toolbar
-INSTALLED_APPS += [
- 'debug_toolbar'
-]
+if debug_toolbar:
+ INSTALLED_APPS += [
+ 'debug_toolbar'
+ ]
-DEBUG_TOOLBAR_PATCH_SETTINGS = False
+ DEBUG_TOOLBAR_PATCH_SETTINGS = False
# This should go first in the middleware classes
-MIDDLEWARE = [
- 'debug_toolbar.middleware.DebugToolbarMiddleware',
-] + MIDDLEWARE
-
-INTERNAL_IPS = [
- '127.0.0.1', '::1',
- '172.18.0.1'
-]
+ MIDDLEWARE = [
+ 'debug_toolbar.middleware.DebugToolbarMiddleware',
+ ] + MIDDLEWARE
+
+ INTERNAL_IPS = [
+ '127.0.0.1', '::1',
+ '172.18.0.1'
+ ]
# django-dbbackup
djangorestframework==3.8.2
django-filter==2.0.0; python_version >= '3.4'
django-filter==1.1.0; python_version < '3.0' # pyup: ignore
+django-debug-toolbar==1.10.1
django-dbbackup==3.2.0
-r requirements-test.txt
mysqlclient==1.3.13
psycopg2-binary==2.7.5
-django-debug-toolbar==1.10.1
python-dateutil==2.7.3