Skip to content

Commit

Permalink
Serve static files
Browse files Browse the repository at this point in the history
  • Loading branch information
TomBenDor committed Jun 16, 2022
1 parent 5af547a commit 680467d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions FaceIt/urls.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
from django.conf import settings
from django.contrib import admin
from django.urls import include, path
from django.urls import include, path, re_path
from django.views.static import serve

urlpatterns = [
path('admin/', admin.site.urls),
path('account/', include('users.urls')),
path('', include('albums.urls')),
]
path('admin/', admin.site.urls),
path('account/', include('users.urls')),
path('', include('albums.urls')),
] + [re_path(r"^static/(?P<path>.*)$", serve, {"document_root": settings.STATIC_ROOT})]

0 comments on commit 680467d

Please sign in to comment.