|
@@ -22,23 +22,21 @@ INSTALLED_APPS = [
|
|
|
'django.contrib.sessions',
|
|
|
'django.contrib.messages',
|
|
|
'django.contrib.staticfiles',
|
|
|
-
|
|
|
'django.contrib.humanize',
|
|
|
-
|
|
|
'django.contrib.sites',
|
|
|
+
|
|
|
+ 'crispy_forms',
|
|
|
+ 'import_export',
|
|
|
'allauth',
|
|
|
'allauth.account',
|
|
|
'allauth.socialaccount',
|
|
|
'allauth.socialaccount.providers.google',
|
|
|
|
|
|
- 'crispy_forms',
|
|
|
- 'backend.users',
|
|
|
- 'backend.main',
|
|
|
- 'backend.manage_playlists',
|
|
|
- 'backend.charts',
|
|
|
- 'backend.search',
|
|
|
-
|
|
|
- 'import_export',
|
|
|
+ 'backend.users.apps.UsersConfig',
|
|
|
+ 'backend.main.apps.MainConfig',
|
|
|
+ 'backend.manage_playlists.apps.ManagePlaylistsConfig',
|
|
|
+ 'backend.charts.apps.ChartsConfig',
|
|
|
+ 'backend.search.apps.SearchConfig',
|
|
|
]
|
|
|
|
|
|
MIDDLEWARE = [
|
|
@@ -56,7 +54,8 @@ ROOT_URLCONF = 'backend.UnTube.urls' # path to the urls.py file in root UnTube
|
|
|
TEMPLATES = [
|
|
|
{
|
|
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
|
|
- 'DIRS': [BASE_DIR / 'backend', BASE_DIR / 'backend' / 'templates'],
|
|
|
+ 'DIRS': [BASE_DIR / 'backend' / 'templates'],
|
|
|
+
|
|
|
|
|
|
'APP_DIRS': True,
|
|
|
'OPTIONS': {
|
|
@@ -120,12 +119,15 @@ USE_TZ = True
|
|
|
|
|
|
|
|
|
STATIC_URL = '/static/'
|
|
|
-STATIC_ROOT = BASE_DIR / 'backend' / 'static'
|
|
|
+STATIC_ROOT = BASE_DIR / 'staticfiles'
|
|
|
|
|
|
+STATICFILES_DIRS = (
|
|
|
+ BASE_DIR / 'backend' / 'main',
|
|
|
+)
|
|
|
|
|
|
|
|
|
|
|
|
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
|
|
|
|
|
MEDIA_URL = '/media/'
|
|
|
-MEDIA_ROOT = BASE_DIR / 'backend' / 'media'
|
|
|
+MEDIA_ROOT = BASE_DIR / 'media'
|