This commit is contained in:
2025-04-20 03:08:12 +02:00
parent eb60fc4dd3
commit 0a5251ec10
10 changed files with 27 additions and 10 deletions

View File

@@ -59,6 +59,8 @@ INSTALLED_APPS = [
'api',
'torrent',
]
if DEBUG:
INSTALLED_APPS = ["daphne"] + INSTALLED_APPS
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
@@ -139,6 +141,7 @@ USE_TZ = True
STATIC_URL = '/static/'
STATICFILES_DIRS = [
BASE_DIR / "static",
BASE_DIR / "frontend/dist",
]
STATIC_ROOT = BASE_DIR / "static_collected"