From 9bacd173b0a28bd3e3550f9bd8cde096afdde593 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 25 Jan 2021 19:56:09 +0100 Subject: [PATCH] change the static path --- backend/network_inventory/urls.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/network_inventory/urls.py b/backend/network_inventory/urls.py index 3a0fc89..d8374fd 100644 --- a/backend/network_inventory/urls.py +++ b/backend/network_inventory/urls.py @@ -16,6 +16,8 @@ Including another URLconf from django.conf.urls import include, url from django.contrib import admin from django.urls import path +from django.conf import settings +from django.conf.urls.static import static from rest_framework import routers @@ -47,4 +49,4 @@ urlpatterns = [ path('api/', include(router.urls)), path('api/', include('rest_framework.urls')), path('api/admin/', admin.site.urls), -] +] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)