Commit 5be47478 authored by Lay Villanueva's avatar Lay Villanueva

Modified settings.py

Updated the secret key to use the .env file
parent c8fcc1d5
SECRET_KEY='django-insecure-3o@-*m(#91fu10lb(1k#qk5zq3)%4ng99i7878f&t33dvb#3(-'
\ No newline at end of file
......@@ -11,6 +11,9 @@ https://docs.djangoproject.com/en/4.1/ref/settings/
"""
from pathlib import Path
from dotenv import load_dotenv
load_dotenv()
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
......@@ -20,7 +23,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-3o@-*m(#91fu10lb(1k#qk5zq3)%4ng99i7878f&t33dvb#3(-'
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