Respect environment variables in development settings

This commit is contained in:
Christopher C. Wells 2022-02-22 08:31:02 -08:00 committed by Christopher Charbonneau Wells
parent b1ee9fe043
commit f49a54400e
1 changed files with 2 additions and 2 deletions

View File

@ -3,8 +3,8 @@ from .base import *
# Quick-start development settings - unsuitable for production # Quick-start development settings - unsuitable for production
# https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/ # https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
SECRET_KEY = "CHANGE ME" SECRET_KEY = os.environ.get("SECRET_KEY") or "DEVELOPMENT!!"
DEBUG = True DEBUG = bool(strtobool(os.environ.get("DEBUG") or "True"))
# Static files (CSS, JavaScript, Images) # Static files (CSS, JavaScript, Images)