New settings layout

This commit is contained in:
Benjamin Bach 2018-06-23 15:31:24 +02:00
parent 37973c352c
commit 1add5f3e35
3 changed files with 11 additions and 3 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@ __pycache__/
*.pyc
*.sw*
db.sqlite3
membersystem/settings/local.py

View file

@ -0,0 +1,10 @@
import warnings
from .base import *
try:
from .local import *
except ImportError:
warnings.warn("No settings.local, using a default SECRET_KEY 'hest'")
SECRET_KEY = "hest"
pass

View file

@ -19,9 +19,6 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '=z5+m4xt$)a#l-*d50vta1vnnho250h3up9o+$c@)ztf8ahw3q'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True