chore: configure project settings so that secret key is now in an .env file

parent fa38c876
SECRET_KEY='django-insecure-zv4n#z)l0f#n@4)w$2pnuy+ukfpczz*yoz-#6j_@hsgl54^gg('
STATIC_ROOT='<folder path of where static items>'
\ No newline at end of file
......@@ -12,6 +12,11 @@ https://docs.djangoproject.com/en/3.2/ref/settings/
from pathlib import Path
from dotenv import load_dotenv
import os
load_dotenv()
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
......@@ -20,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 = 'django-insecure-zv4n#z)l0f#n@4)w$2pnuy+ukfpczz*yoz-#6j_@hsgl54^gg('
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