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",