feat: добавить поддержку Whitenoise и обновить конфигурацию для продакшна
All checks were successful
Build and Push Docker Image / build (push) Successful in 25s

- Добавлен Whitenoise для управления статическими файлами
- Настроены STATICFILES_DIRS, STATIC_ROOT и STORAGES
- Добавлен middleware Whitenoise
- Обновлён Dockerfile: добавлена команда collectstatic
- Включён preview host в ALLOWED_HOSTS
- Добавлены необходимые зависимости в requirements.txt
This commit is contained in:
2026-03-30 22:50:29 +02:00
parent 6dcdccf801
commit c367831df8
3 changed files with 24 additions and 1 deletions

View File

@@ -7,6 +7,8 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN python manage.py collectstatic --noinput
ENV HOST=0.0.0.0
ENV PORT=8000