Skip to content

Commit

Permalink
feat: Serving static files
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandro-Meireles committed Aug 6, 2024
1 parent eb3458b commit 3bab66f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions retail/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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<path>.*)$", serve, {"document_root": settings.STATIC_ROOT})
)

0 comments on commit 3bab66f

Please sign in to comment.