Skip to content
Snippets Groups Projects
Commit 621385ea authored by Piotr Gawron's avatar Piotr Gawron
Browse files

'debug_toolbar' is configured in local settings

parent 6b5d5a5a
No related branches found
No related tags found
2 merge requests!157Bug/migration problem issue 236 devel,!156Resolve "settings.py"
Pipeline #
...@@ -2,7 +2,11 @@ ...@@ -2,7 +2,11 @@
SECRET_KEY = 'Paste long random string here' # Insert long random string SECRET_KEY = 'Paste long random string here' # Insert long random string
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = False
DEV_APPS = [
# 'debug_toolbar',
]
WSGI_APPLICATION = 'smash.wsgi.application' WSGI_APPLICATION = 'smash.wsgi.application'
......
...@@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/1.10/ref/settings/ ...@@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/1.10/ref/settings/
""" """
import os import os
from local_settings import DEV_APPS
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
...@@ -36,11 +37,11 @@ INSTALLED_APPS = [ ...@@ -36,11 +37,11 @@ INSTALLED_APPS = [
'django_otp.plugins.otp_totp', 'django_otp.plugins.otp_totp',
'two_factor', 'two_factor',
'web', 'web',
'stronghold', 'stronghold'
'debug_toolbar'
] ]
INSTALLED_APPS += DEV_APPS
MIDDLEWARE = [ MIDDLEWARE = [
'debug_toolbar.middleware.DebugToolbarMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware',
'django.middleware.security.SecurityMiddleware', 'django.middleware.security.SecurityMiddleware',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment