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``. It exposes the ASGI callable as a module-level variable named ``application``.
...@@ -11,6 +11,6 @@ import os ...@@ -11,6 +11,6 @@ import os
from django.core.asgi import get_asgi_application 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() 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. Generated by 'django-admin startproject' using Django 3.2.
...@@ -11,6 +11,10 @@ https://docs.djangoproject.com/en/3.2/ref/settings/ ...@@ -11,6 +11,10 @@ https://docs.djangoproject.com/en/3.2/ref/settings/
""" """
from pathlib import Path from pathlib import Path
import os
from dotenv import load_dotenv
load_dotenv()
# Build paths inside the project like this: BASE_DIR / 'subdir'. # Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent BASE_DIR = Path(__file__).resolve().parent.parent
...@@ -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/3.2/howto/deployment/checklist/ # See https://docs.djangoproject.com/en/3.2/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-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! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = True
...@@ -49,7 +53,7 @@ MIDDLEWARE = [ ...@@ -49,7 +53,7 @@ MIDDLEWARE = [
'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware',
] ]
ROOT_URLCONF = 'joaqscrisologo_music.urls' ROOT_URLCONF = 'joaqscrisologo_reading.urls'
TEMPLATES = [ TEMPLATES = [
{ {
...@@ -67,7 +71,7 @@ TEMPLATES = [ ...@@ -67,7 +71,7 @@ TEMPLATES = [
}, },
] ]
WSGI_APPLICATION = 'joaqscrisologo_music.wsgi.application' WSGI_APPLICATION = 'joaqscrisologo_reading.wsgi.application'
# Database # Database
......
"""joaqscrisologo_music URL Configuration """joaqscrisologo_reading URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see: The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/ 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``. It exposes the WSGI callable as a module-level variable named ``application``.
...@@ -11,6 +11,6 @@ import os ...@@ -11,6 +11,6 @@ import os
from django.core.wsgi import get_wsgi_application 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() application = get_wsgi_application()
...@@ -6,7 +6,7 @@ import sys ...@@ -6,7 +6,7 @@ import sys
def main(): def main():
"""Run administrative tasks.""" """Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'joaqscrisologo_music.settings') os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'joaqscrisologo_reading.settings')
try: try:
from django.core.management import execute_from_command_line from django.core.management import execute_from_command_line
except ImportError as exc: 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