Browse Source

serve staticfiles directly

boyska 4 years ago
parent
commit
0e697a026b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      rxmap/rxmapp/urls.py

+ 2 - 1
rxmap/rxmapp/urls.py

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