fixed missing images

This commit is contained in:
nvrl committed 2026-02-16 13:25:46 +01:00
1 parent 2a73c062bb
commit 244795e887
31 files changed
+47 -12

No files matched your search

+5 -1
View File
@@ -5,6 +5,9 @@ from rest_framework.authtoken.views import obtain_auth_token
from django.conf import settings
from django.conf.urls.static import static
from django.views.static import serve
import re
urlpatterns = [
path('admin/', admin.site.urls),
path('api/', include('api.urls')),
@@ -13,4 +16,5 @@ urlpatterns = [
path('api/schema/', SpectacularAPIView.as_view(), name='schema'),
path('api/schema/swagger-ui/', SpectacularSwaggerView.as_view(url_name='schema'), name='swagger-ui'),
path('api/schema/redoc/', SpectacularRedocView.as_view(url_name='schema'), name='redoc'),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
path('media/<path:path>', serve, {'document_root': settings.MEDIA_ROOT}),
]