Skip to content

Commit ec83787

Browse files
committed
move secret_key to .env
1 parent d35c120 commit ec83787

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

DataSpace/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@
3232
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
3333

3434
# SECURITY WARNING: keep the secret key used in production secret!
35-
SECRET_KEY = "django-insecure-af%#657wf@f-hclfimni96qy07fyhjbglc!@^98jpn9z%#9b6%"
35+
SECRET_KEY = env(
36+
"SECRET_KEY",
37+
default="django-insecure-af%#657wf@f-hclfimni96qy07fyhjbglc!@^98jpn9z%#9b6%",
38+
)
3639

3740
# load env and variables
3841
DB_ENGINE = env("DB_ENGINE", default="django.db.backends.sqlite3")

0 commit comments

Comments
 (0)