Связал склад и спецификацию
All checks were successful
Auto-Deploy-prodman / deploy (push) Successful in 6s

This commit is contained in:
2026-02-16 08:15:44 +03:00
parent 56dd6644e2
commit 785fed4b7f
3 changed files with 45 additions and 0 deletions

View File

@@ -16,8 +16,15 @@ Including another URLconf
"""
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('bom_manager.urls')),
]
# Вместо if settings.DEBUG:
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)