From fe9266d01e2b9ff7414738be0c54479feeaa3117 Mon Sep 17 00:00:00 2001 From: Jan Baykara Date: Fri, 8 Mar 2024 20:29:20 +0000 Subject: [PATCH] Deploy async healthcheck --- hub/views/core.py | 5 +++++ local_intelligence_hub/urls.py | 1 + 2 files changed, 6 insertions(+) diff --git a/hub/views/core.py b/hub/views/core.py index a916cee36..2cd5c23a7 100644 --- a/hub/views/core.py +++ b/hub/views/core.py @@ -5,6 +5,11 @@ from hub.mixins import TitleMixin from hub.models import Area, DataSet +from django.http import HttpResponse + + +async def async_healthcheck(request): + return HttpResponse("Hello, async Django!") class NotFoundPageView(TitleMixin, TemplateView): diff --git a/local_intelligence_hub/urls.py b/local_intelligence_hub/urls.py index 20cbebb46..92c086316 100644 --- a/local_intelligence_hub/urls.py +++ b/local_intelligence_hub/urls.py @@ -31,6 +31,7 @@ urlpatterns = [ path("", core.HomePageView.as_view(), name="home"), + path("async-healthcheck", core.async_healthcheck), path("explore/", explore.ExploreView.as_view(), name="explore"), path( "explore/datasets.json",