Commit 14de6060 authored by Ramon Angelo Enriquez's avatar Ramon Angelo Enriquez

Added the .ENV file

parent 00b33a26
SECRET_KEY = 'django-insecure-fi$-&cab%rkf(aj)e$gc*9tf))wbc6tq!m!8_8%*e))^i(uc47'
STATIC_ROOT = 'widget_tee_jays_angelos'
...@@ -9,6 +9,10 @@ https://docs.djangoproject.com/en/4.0/topics/settings/ ...@@ -9,6 +9,10 @@ https://docs.djangoproject.com/en/4.0/topics/settings/
For the full list of settings and their values, see For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.0/ref/settings/ https://docs.djangoproject.com/en/4.0/ref/settings/
""" """
import os
from dotenv import load_dotenv
load_dotenv()
from pathlib import Path from pathlib import Path
...@@ -20,7 +24,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent ...@@ -20,7 +24,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/ # See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret! # SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-fi$-&cab%rkf(aj)e$gc*9tf))wbc6tq!m!8_8%*e))^i(uc47' SECRET_KEY = os.getenv('SECRET_KEY')
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True 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