|
@@ -11,12 +11,12 @@ https://docs.djangoproject.com/en/3.2/ref/settings/
|
|
|
"""
|
|
|
import os
|
|
|
from pathlib import Path
|
|
|
-from UnTube.secrets import SECRETS
|
|
|
+from backend.UnTube.secrets import SECRETS
|
|
|
|
|
|
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
|
|
|
|
|
# PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
|
|
|
-BASE_DIR = Path(__file__).resolve().parent.parent
|
|
|
+BASE_DIR = Path(__file__).resolve().parent.parent.parent
|
|
|
# BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
|
|
# Quick-start development settings - unsuitable for production
|
|
@@ -49,11 +49,11 @@ INSTALLED_APPS = [
|
|
|
'allauth.socialaccount.providers.google', # specifies google as OAuth provider
|
|
|
|
|
|
'crispy_forms',
|
|
|
- 'apps.users', # has stuff related to user management in it (login, signup, show homepage, import)
|
|
|
- 'apps.main', # main app, shows user their homepage
|
|
|
- 'apps.manage_playlists',
|
|
|
- 'apps.charts',
|
|
|
- 'apps.search',
|
|
|
+ 'backend.users', # has stuff related to user management in it (login, signup, show homepage, import)
|
|
|
+ 'backend.main', # main app, shows user their homepage
|
|
|
+ 'backend.manage_playlists',
|
|
|
+ 'backend.charts',
|
|
|
+ 'backend.search',
|
|
|
]
|
|
|
|
|
|
CRISPY_TEMPLATE_PACK = 'bootstrap4'
|
|
@@ -69,12 +69,12 @@ MIDDLEWARE = [
|
|
|
|
|
|
]
|
|
|
|
|
|
-ROOT_URLCONF = 'UnTube.urls'
|
|
|
-
|
|
|
+ROOT_URLCONF = 'backend.UnTube.urls' # path to the urls.py file in root UnTube app folder
|
|
|
+print(BASE_DIR)
|
|
|
TEMPLATES = [
|
|
|
{
|
|
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
|
|
- 'DIRS': [BASE_DIR / 'templates'],
|
|
|
+ 'DIRS': [BASE_DIR / 'backend' / 'templates'],
|
|
|
# 'DIRS': [os.path.join(BASE_DIR, "templates")],
|
|
|
'APP_DIRS': True,
|
|
|
'OPTIONS': {
|
|
@@ -114,7 +114,7 @@ LOGIN_URL = '/'
|
|
|
LOGIN_REDIRECT_URL = '/home/'
|
|
|
LOGOUT_REDIRECT_URL = '/home/'
|
|
|
|
|
|
-WSGI_APPLICATION = 'UnTube.wsgi.application'
|
|
|
+WSGI_APPLICATION = 'backend.UnTube.wsgi.application' # path to the wsgi.py file in root UnTube app folder
|
|
|
|
|
|
# Database
|
|
|
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases
|