Update SECRET_KEY to use environment variable

This commit is contained in:
Jean Lionel Ndabaga 2024-03-08 16:54:25 +02:00
parent c7efd64b96
commit 1cf914ec52

View file

@ -21,7 +21,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/ # See https://docs.djangoproject.com/en/5.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-n7m7=+yhd315*v%bys-i!!8y69d7bdc@bzie4=mr^pcs!(-im1' SECRET_KEY = str(os.getenv('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 = True