serve staticfiles directly

This commit is contained in:
boyska 2020-03-08 00:33:29 +01:00
parent f2d61b6dec
commit 0e697a026b

View file

@ -16,7 +16,7 @@ Including another URLconf
from django.contrib import admin from django.contrib import admin
from django.urls import path, include from django.urls import path, include
from django.views.generic import TemplateView from django.views.generic import TemplateView
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from . import views from . import views
urlpatterns = [ urlpatterns = [
@ -27,3 +27,4 @@ urlpatterns = [
path("api/rapporti/add", views.rapporto_add), path("api/rapporti/add", views.rapporto_add),
path("api/rapporti/delete", views.rapporto_delete), path("api/rapporti/delete", views.rapporto_delete),
] ]
urlpatterns += staticfiles_urlpatterns()