adjustments for production usage

This commit is contained in:
CDaut 2022-06-25 19:31:57 +02:00 committed by CDaut
parent 39bf44e109
commit f57a955d65

View file

@ -19,12 +19,12 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/ # See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret! # SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-u%h7!h6zjk=$!v)x$cd8gj-p@q$t(cd5rw@#tyq^uykp6*qbc&' SECRET_KEY = os.environ['DJANGO_SECRET_KEY']
# 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 = bool(os.environ['DJANGO_DEBUG'] != 'False')
ALLOWED_HOSTS = [] ALLOWED_HOSTS = ['0.0.0.0', '127.0.0.1']
# Application definition # Application definition