mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-10 14:44:18 +00:00
always serve static files
This commit is contained in:
parent
fb8e6cabcb
commit
8c2d81c041
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,7 @@ from django.contrib import admin
|
|||
|
||||
from django.urls import path, include
|
||||
from django.views import static
|
||||
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
||||
from django.conf import settings
|
||||
from django.views.generic.base import RedirectView
|
||||
|
||||
|
@ -35,6 +36,7 @@ urlpatterns = [
|
|||
path('index.json', static.serve, {'document_root': settings.OUTPUT_DIR, 'path': 'index.json'}),
|
||||
path('', HomepageView.as_view(), name='Home'),
|
||||
]
|
||||
urlpatterns += staticfiles_urlpatterns()
|
||||
|
||||
if settings.DEBUG_TOOLBAR:
|
||||
import debug_toolbar
|
||||
|
|
Loading…
Reference in a new issue