Answers for "allowed hosts django elb"

2

django setup allowed hosts

ALLOWED_HOSTS = ['*']
Posted by: Guest on May-26-2021
0

allowed hosts django elb

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")
Posted by: Guest on April-13-2022

Code answers related to "TypeScript"

Browse Popular Code Answers by Language