Django Setup erlaubte Hosts
ALLOWED_HOSTS = ['*']
Cloudy Cat
ALLOWED_HOSTS = ['*']
from django.http import HttpResponse
from django.utils.deprecation import MiddlewareMixin
class HealthCheckMiddleware(MiddlewareMixin):
def process_request(self, request):
if request.META["PATH_INFO"] == "/ping/":
return HttpResponse("pong")