Add notification about upgrade to admin page

This commit is contained in:
Ben Muthalaly 2023-11-23 03:04:31 -06:00
parent 0bd83076db
commit 7599dbb79d
2 changed files with 95 additions and 1 deletions

View file

@ -8,6 +8,7 @@ from django.views.generic.base import RedirectView
from core.views import HomepageView, SnapshotView, PublicIndexView, AddView, HealthCheckView
from config import VERSION
# print('DEBUG', settings.DEBUG)
@ -30,7 +31,7 @@ urlpatterns = [
path('accounts/', include('django.contrib.auth.urls')),
path('admin/', admin.site.urls),
path('admin/', admin.site.urls, {'extra_context': {'VERSION': VERSION}}),
path('health/', HealthCheckView.as_view(), name='healthcheck'),
path('error/', lambda _: 1/0),