mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 16:40:36 +00:00
Serve static files in debug mode
This commit is contained in:
parent
a09b2ab45c
commit
1e495684af
1 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
""" url routing for the app and api """
|
||||
from django.conf.urls.static import static
|
||||
from django.contrib import admin
|
||||
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
||||
from django.urls import path, re_path
|
||||
from django.views.generic.base import TemplateView
|
||||
|
||||
|
@ -774,5 +775,8 @@ urlpatterns = [
|
|||
path("guided-tour/<tour>", views.toggle_guided_tour),
|
||||
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
|
||||
# Serves /static when DEBUG is true.
|
||||
urlpatterns.extend(staticfiles_urlpatterns())
|
||||
|
||||
# pylint: disable=invalid-name
|
||||
handler500 = "bookwyrm.views.server_error"
|
||||
|
|
Loading…
Reference in a new issue