Skip to content

Commit

Permalink
Adding core settings for dotenv #17
Browse files Browse the repository at this point in the history
  • Loading branch information
gm3dmo committed Sep 20, 2023
1 parent 014205e commit ea6296c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@

from pathlib import Path

import os
from dotenv import load_dotenv
dotenv_path = os.path.join(os.path.dirname(__file__), '.env')
load_dotenv(dotenv_path)

# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent

Expand All @@ -20,7 +25,9 @@
# See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "django-insecure--xsax10=q^o9t9h3)i=4++48=96$+c#(inh#%#zufdw4^kk8s("
# SECRET_KEY = "django-insecure--xsax10=q^o9t9h3)i=4++48=96$+c#(inh#%#zufdw4^kk8s("
SECRET_KEY = str(os.getenv('SECRET_KEY'))


# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
Expand Down

0 comments on commit ea6296c

Please sign in to comment.