Skip to content

Commit

Permalink
removed secret key from settings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vasudev-gm committed Sep 27, 2023
1 parent 8bebb03 commit 47a88c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apidemo/apidemo/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.2/ref/settings/
"""

import os
from pathlib import Path

# Build paths inside the project like this: BASE_DIR / 'subdir'.
Expand All @@ -20,7 +20,7 @@
# 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-yi=ydd84e)vvpn9rp+(@fu#m5si(ukcvts2(@2jl^$^1l5tjqa'
SECRET_KEY = os.getenv("DJANGO_SECRET", None)

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

0 comments on commit 47a88c7

Please sign in to comment.