From 1cf914ec526ded855f04a55b2eeb4704a02c3775 Mon Sep 17 00:00:00 2001 From: Jean Lionel Ndabaga <78383037+Lionel-hub1@users.noreply.github.com> Date: Fri, 8 Mar 2024 16:54:25 +0200 Subject: [PATCH] Update SECRET_KEY to use environment variable --- buffer_clone_backend/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buffer_clone_backend/settings.py b/buffer_clone_backend/settings.py index 7753e99..9c5ddc4 100644 --- a/buffer_clone_backend/settings.py +++ b/buffer_clone_backend/settings.py @@ -21,7 +21,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent # See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/ # 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! DEBUG = True