Commit 9abe24af authored by Alia Lawraine Olay's avatar Alia Lawraine Olay

Added value of secret key in .env

parent 86ca8dc6
SECRET_KEY='<value of the secret key in settings.py>'
STATIC_ROOT='<folder path of where static items>'
\ No newline at end of file
SECRET_KEY='django-insecure-9lh6i_8o%+1ti#bh2cscs(g4p7vkzo$$wzsr&usgmo!q=6f9#r'
\ No newline at end of file
......@@ -9,11 +9,10 @@ https://docs.djangoproject.com/en/4.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.0/ref/settings/
"""
import os
from pathlib import Path
# put this in the imports part of settings.py (from Lecture 7)
from dotenv import load_dotenv
load_dotenv()
# Build paths inside the project like this: BASE_DIR / 'subdir'.
......@@ -24,7 +23,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-9lh6i_8o%+1ti#bh2cscs(g4p7vkzo$$wzsr&usgmo!q=6f9#r'
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