feat: Implement Dockerized multi-tenant Django application with initial setup for database, migrations, and superuser creation.

This commit is contained in:
2025-12-12 18:04:36 +03:00
parent 0046b36e89
commit 4cbc5c07b9
7 changed files with 152 additions and 27 deletions

View File

@@ -225,7 +225,8 @@ STATICFILES_DIRS = [BASE_DIR / 'static']
# В production используем внешнюю директорию для nginx
if not DEBUG:
STATIC_ROOT = '/Volume1/DockerAppsData/npm/data/static/'
# Внутри контейнера путь всегда /app/staticfiles (куда мы смонтировали volume)
STATIC_ROOT = BASE_DIR / 'staticfiles'
else:
STATIC_ROOT = BASE_DIR / 'staticfiles'