from django.http import HttpResponse from django.views import View class HealthCheck(View): http_method_names = ["get", "head"] def get(self, request, *args, **kwargs): return HttpResponse("OK")