diff --git a/smash/smash/local_settings.py.template b/smash/smash/local_settings.py.template index 652a544a7cbe0200a79bf08391d99e85743fc7fd..37a160afe4a23223907c84b0f84222b9ad291147 100644 --- a/smash/smash/local_settings.py.template +++ b/smash/smash/local_settings.py.template @@ -2,7 +2,11 @@ SECRET_KEY = 'Paste long random string here' # Insert long random string # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = False + +DEV_APPS = [ + # 'debug_toolbar', +] WSGI_APPLICATION = 'smash.wsgi.application' diff --git a/smash/smash/settings.py b/smash/smash/settings.py index c11fe16accedc21a7dcdf46f168e4305be7ec5ea..1b0702cfbfcf5b5d8eb705be9b557ac1b04dc717 100644 --- a/smash/smash/settings.py +++ b/smash/smash/settings.py @@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os +from local_settings import DEV_APPS # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) @@ -36,11 +37,11 @@ INSTALLED_APPS = [ 'django_otp.plugins.otp_totp', 'two_factor', 'web', - 'stronghold', - - 'debug_toolbar' + 'stronghold' ] +INSTALLED_APPS += DEV_APPS + MIDDLEWARE = [ 'debug_toolbar.middleware.DebugToolbarMiddleware', 'django.middleware.security.SecurityMiddleware',