Подправил докерфайл сборки контейнера
All checks were successful
Deploy MES Core / deploy (push) Successful in 2m19s

This commit is contained in:
2026-03-28 10:11:52 +03:00
parent 12c07a8108
commit fba195db9c
5 changed files with 38 additions and 2 deletions

View File

@@ -16,7 +16,14 @@ Including another URLconf
"""
from django.contrib import admin
from django.urls import path
from django.conf.urls.static import static # <--- Добавьте эту строку
from core import settings
urlpatterns = [
path('admin/', admin.site.urls),
]
# Вместо if settings.DEBUG: не забываем from django.conf.urls.static import static # <--- Добавьте эту строку
if settings.ENV_TYPE in ['local', 'dev']:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)