Fix name of project (oops) and add .env

parent b8fd08c2
SECRET_KEY='django-insecure-u6#5zek9&qk7#it0(jodmfl%pm8j53!#*jo#*ct0xxn45mi9$g'
STATIC_ROOT='<folder path of where static items>'
\ No newline at end of file
"""
ASGI config for joaqscrisologo_music project.
ASGI config for joaqscrisologo_reading project.
It exposes the ASGI callable as a module-level variable named ``application``.
......@@ -11,6 +11,6 @@ import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'joaqscrisologo_music.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'joaqscrisologo_reading.settings')
application = get_asgi_application()
"""
Django settings for joaqscrisologo_music project.
Django settings for joaqscrisologo_reading project.
Generated by 'django-admin startproject' using Django 3.2.
......@@ -11,6 +11,10 @@ https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib import Path
import os
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 +24,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-srovlxbfgwq+^t#)=-+64dv7u_pr!gfykz0=-g_qi(!i-d1&3@'
SECRET_KEY = os.getenv('SECRET_KEY')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
......@@ -49,7 +53,7 @@ MIDDLEWARE = [
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'joaqscrisologo_music.urls'
ROOT_URLCONF = 'joaqscrisologo_reading.urls'
TEMPLATES = [
{
......@@ -67,7 +71,7 @@ TEMPLATES = [
},
]
WSGI_APPLICATION = 'joaqscrisologo_music.wsgi.application'
WSGI_APPLICATION = 'joaqscrisologo_reading.wsgi.application'
# Database
......
"""joaqscrisologo_music URL Configuration
"""joaqscrisologo_reading URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
......
"""
WSGI config for joaqscrisologo_music project.
WSGI config for joaqscrisologo_reading project.
It exposes the WSGI callable as a module-level variable named ``application``.
......@@ -11,6 +11,6 @@ import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'joaqscrisologo_music.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'joaqscrisologo_reading.settings')
application = get_wsgi_application()
......@@ -6,7 +6,7 @@ import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'joaqscrisologo_music.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'joaqscrisologo_reading.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
......
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