1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-15 11:04:17 +02:00

Update urls.py

This commit is contained in:
Nick Sweeting
2023-12-19 09:58:15 -08:00
committed by GitHub
parent 14f10a0461
commit 480eff52db

View File

@@ -12,6 +12,8 @@ from config import VERSION, VERSION_RELEASES, CAN_UPGRADE
# print('DEBUG', settings.DEBUG)
GLOBAL_CONTEXT = {'VERSION': VERSION, 'VERSIONS_AVAILABLE': VERSIONS_AVAILABLE, 'CAN_UPGRADE': CAN_UPGRADE}
urlpatterns = [
path('public/', PublicIndexView.as_view(), name='public-index'),
@@ -31,7 +33,7 @@ urlpatterns = [
path('accounts/', include('django.contrib.auth.urls')),
path('admin/', admin.site.urls, {'extra_context': {'VERSION': VERSION, 'VERSION_RELEASES': VERSION_RELEASES, 'CAN_UPGRADE': CAN_UPGRADE}}),
path('admin/', admin.site.urls, {'extra_context': GLOBAL_CONTEXT}),
path('health/', HealthCheckView.as_view(), name='healthcheck'),
path('error/', lambda _: 1/0),