From 78065a68d32341775dd3804be1999680ff5b3d3b Mon Sep 17 00:00:00 2001 From: sosokker Date: Mon, 28 Aug 2023 19:41:10 +0700 Subject: [PATCH] Regenerate SECRET_KEY/ Hide SECRET_KEY --- mysite/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mysite/settings.py b/mysite/settings.py index 5834374..e23d57e 100644 --- a/mysite/settings.py +++ b/mysite/settings.py @@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/4.2/ref/settings/ """ from pathlib import Path +from decouple import config # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent @@ -20,7 +21,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent # See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'django-insecure-ij$9jv9o30j(51=l)ho^l+x&q9)n77i1vt%j()%9=(ohh(b*!^' +SECRET_KEY = config('SECRET_KEY', default='fake-secret-key') # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True