mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-15 07:34:27 -04:00
new public view derived from django
This commit is contained in:
parent
50f3f16203
commit
5c4ac3cf3d
3 changed files with 294 additions and 1 deletions
|
@ -5,7 +5,7 @@ from django.views import static
|
|||
from django.conf import settings
|
||||
from django.views.generic.base import RedirectView
|
||||
|
||||
from core.views import MainIndex, OldIndex, LinkDetails
|
||||
from core.views import MainIndex, OldIndex, LinkDetails, PublicArchiveView
|
||||
|
||||
|
||||
# print('DEBUG', settings.DEBUG)
|
||||
|
@ -31,4 +31,5 @@ urlpatterns = [
|
|||
path('index.html', RedirectView.as_view(url='/')),
|
||||
path('index.json', static.serve, {'document_root': settings.OUTPUT_DIR, 'path': 'index.json'}),
|
||||
path('', MainIndex.as_view(), name='Home'),
|
||||
path('public/', PublicArchiveView.as_view())
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue