Skip to content

Commit 47a88c7

Browse files
committed
removed secret key from settings.py
1 parent 8bebb03 commit 47a88c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apidemo/apidemo/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
For the full list of settings and their values, see
1010
https://docs.djangoproject.com/en/4.2/ref/settings/
1111
"""
12-
12+
import os
1313
from pathlib import Path
1414

1515
# Build paths inside the project like this: BASE_DIR / 'subdir'.
@@ -20,7 +20,7 @@
2020
# See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/
2121

2222
# SECURITY WARNING: keep the secret key used in production secret!
23-
SECRET_KEY = 'django-insecure-yi=ydd84e)vvpn9rp+(@fu#m5si(ukcvts2(@2jl^$^1l5tjqa'
23+
SECRET_KEY = os.getenv("DJANGO_SECRET", None)
2424

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

0 commit comments

Comments
 (0)