We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b78a75d commit 167dc10Copy full SHA for 167dc10
1 file changed
DR_Detection/settings.py
@@ -21,7 +21,10 @@
21
# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/
22
23
# SECURITY WARNING: keep the secret key used in production secret!
24
-SECRET_KEY = "django-insecure-i+4mijs7vqvx18zz08p93tldpvqr8$&u$x=df599h!y6p-a39^"
+if os.getenv("SECRET_KEY"):
25
+ SECRET_KEY = os.getenv("SECRET_KEY")
26
+else:
27
+ SECRET_KEY = "django-insecure-i+4mijs7vqvx18zz08p93tldpvqr8$&u$x=df599h!y6p-a39^"
28
29
# SECURITY WARNING: don't run with debug turned on in production!
30
DEBUG = True
0 commit comments