Skip to content
Snippets Groups Projects
Commit 951a359a authored by Valentin Groues's avatar Valentin Groues :eyes:
Browse files

Merge branch '230-settings-py' into 'devel_0.11.x'

Resolve "settings.py"

See merge request NCER-PD/scheduling-system!156
parents 7de6cbff 498c7b7f
No related branches found
No related tags found
2 merge requests!157Bug/migration problem issue 236 devel,!156Resolve "settings.py"
Pipeline #6309 failed
......@@ -4,6 +4,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
DEV_APPS = [
'debug_toolbar',
]
WSGI_APPLICATION = 'smash.wsgi.application'
# Database
......
......@@ -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'
......
......@@ -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',
......
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