Skip to content

Commit 167dc10

Browse files
Env changes
1 parent b78a75d commit 167dc10

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

DR_Detection/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121
# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/
2222

2323
# SECURITY WARNING: keep the secret key used in production secret!
24-
SECRET_KEY = "django-insecure-i+4mijs7vqvx18zz08p93tldpvqr8$&u$x=df599h!y6p-a39^"
24+
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^"
2528

2629
# SECURITY WARNING: don't run with debug turned on in production!
2730
DEBUG = True

0 commit comments

Comments
 (0)