|
@@ -6,7 +6,7 @@ from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
|
|
from django.conf import settings
|
|
from django.conf import settings
|
|
|
from django.views.generic.base import RedirectView
|
|
from django.views.generic.base import RedirectView
|
|
|
|
|
|
|
|
-from core.views import HomepageView, SnapshotView, PublicIndexView, AddView
|
|
|
|
|
|
|
+from core.views import HomepageView, SnapshotView, PublicIndexView, AddView, HealthCheckView
|
|
|
|
|
|
|
|
|
|
|
|
|
# print('DEBUG', settings.DEBUG)
|
|
# print('DEBUG', settings.DEBUG)
|
|
@@ -24,14 +24,16 @@ urlpatterns = [
|
|
|
|
|
|
|
|
path('admin/core/snapshot/add/', RedirectView.as_view(url='/add/')),
|
|
path('admin/core/snapshot/add/', RedirectView.as_view(url='/add/')),
|
|
|
path('add/', AddView.as_view(), name='add'),
|
|
path('add/', AddView.as_view(), name='add'),
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
path('accounts/login/', RedirectView.as_view(url='/admin/login/')),
|
|
path('accounts/login/', RedirectView.as_view(url='/admin/login/')),
|
|
|
path('accounts/logout/', RedirectView.as_view(url='/admin/logout/')),
|
|
path('accounts/logout/', RedirectView.as_view(url='/admin/logout/')),
|
|
|
|
|
|
|
|
|
|
|
|
|
path('accounts/', include('django.contrib.auth.urls')),
|
|
path('accounts/', include('django.contrib.auth.urls')),
|
|
|
path('admin/', admin.site.urls),
|
|
path('admin/', admin.site.urls),
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+ path('health/', HealthCheckView.as_view(), name='healthcheck'),
|
|
|
|
|
+
|
|
|
path('index.html', RedirectView.as_view(url='/')),
|
|
path('index.html', RedirectView.as_view(url='/')),
|
|
|
path('index.json', static.serve, {'document_root': settings.OUTPUT_DIR, 'path': 'index.json'}),
|
|
path('index.json', static.serve, {'document_root': settings.OUTPUT_DIR, 'path': 'index.json'}),
|
|
|
path('', HomepageView.as_view(), name='Home'),
|
|
path('', HomepageView.as_view(), name='Home'),
|