Skip to content
Snippets Groups Projects
Commit b21940bc authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Serve static files during development

This won't affect production: it will only serve static files if
parent 187aa8fb
No related branches found
No related tags found
No related merge requests found
Pipeline #2500 passed
......@@ -21,6 +21,8 @@
from drf_spectacular.views import SpectacularAPIView, SpectacularSwaggerView
from rest_framework_nested import routers
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import include, path
from program.views import (
......@@ -106,4 +108,4 @@ urlpatterns = [
name="swagger-ui",
),
path("admin/", admin.site.urls),
]
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment