Commit 488a3d1c authored by Stefan Gomez's avatar Stefan Gomez

Updated the settings.py to add the bookshelf app

parent e4afc3ca
SECRET_KEY = 'django-insecure-dg+c$e^v#y%c1p8pzl7g+kr*q3h3ygb&ny(3_a)ee9oqhfkv(v'
\ No newline at end of file
......@@ -10,7 +10,12 @@ For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.1/ref/settings/
"""
import os
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 +25,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-dg+c$e^v#y%c1p8pzl7g+kr*q3h3ygb&ny(3_a)ee9oqhfkv(v'
SECRET_KEY = os.getenv('SECRET_KEY')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
......@@ -37,6 +42,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'bookshelf',
]
MIDDLEWARE = [
......
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