Commit c4f5c3cc authored by Cherish Magpayo's avatar Cherish Magpayo

Modified settings.py to retrieve SECRET_KEY from local environment via dotenv...

Modified settings.py to retrieve SECRET_KEY from local environment via dotenv and deleted the env.env file to keep the new SECRET_KEY safe
parent 2885e6d6
SECRET_KEY='youpert'
STATIC_ROOT='<folder path of where static items>'
\ No newline at end of file
......@@ -10,6 +10,7 @@ For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
from pathlib import Path
from dotenv import load_dotenv
......@@ -24,7 +25,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'youpert'
SECRET_KEY = os.getenv('SECRET_KEY')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment