From 3bab66f57e92fcaf3d71c1fa04297f42864dff21 Mon Sep 17 00:00:00 2001 From: "sandro.meireles" Date: Tue, 6 Aug 2024 11:59:45 -0300 Subject: [PATCH] feat: Serving static files --- retail/urls.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/retail/urls.py b/retail/urls.py index f119449..eedf238 100644 --- a/retail/urls.py +++ b/retail/urls.py @@ -17,10 +17,18 @@ from django.contrib import admin from django.urls import path +from django.views.static import serve +from django.conf import settings +from django.urls import re_path from retail.healthcheck import views + urlpatterns = [ path("admin/", admin.site.urls), path("healthcheck/", views.healthcheck, name="healthcheck"), ] + +urlpatterns.append( + re_path(r"^static/(?P.*)$", serve, {"document_root": settings.STATIC_ROOT}) +)