From d60d73754d313144394c02a3a256311081a459f6 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Wed, 17 Feb 2021 18:25:47 -0500 Subject: [PATCH] fix favicon.ico and robots.txt served by runserver --- archivebox/core/urls.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archivebox/core/urls.py b/archivebox/core/urls.py index 15ff24c7..d955f9f8 100644 --- a/archivebox/core/urls.py +++ b/archivebox/core/urls.py @@ -14,13 +14,13 @@ from core.views import HomepageView, SnapshotView, PublicIndexView, AddView urlpatterns = [ path('public/', PublicIndexView.as_view(), name='public-index'), - path('robots.txt', static.serve, {'document_root': settings.OUTPUT_DIR, 'path': 'robots.txt'}), - path('favicon.ico', static.serve, {'document_root': settings.OUTPUT_DIR, 'path': 'favicon.ico'}), + path('robots.txt', static.serve, {'document_root': settings.STATICFILES_DIRS[0], 'path': 'robots.txt'}), + path('favicon.ico', static.serve, {'document_root': settings.STATICFILES_DIRS[0], 'path': 'favicon.ico'}), path('docs/', RedirectView.as_view(url='https://github.com/ArchiveBox/ArchiveBox/wiki'), name='Docs'), path('archive/', RedirectView.as_view(url='/')), - path('archive/', SnapshotView.as_view(), name='Snapshot'), + path('archive/', SnapshotView.as_view(), name='snapshot'), path('admin/core/snapshot/add/', RedirectView.as_view(url='/add/')), path('add/', AddView.as_view(), name='add'),