Gunicorn not forwarding reason phrase from Django Response

Published: 10/10/2019
Gunicorn not forwarding reason phrase from Django Response
Source: STACKOVERFLOW.COM

I am hosting my Django app with Gunicorn. What happen is as follow A sample response from Django would be as follow @require_http_methods(['POST']) def register(request): body = json.loads(request.body.decode('utf-8')) try: email = body['email'] except: return HttpResponse(status=400, reason="Email must be provided.") During the development, the Django app are run with command python manag

Read more
Related news
Comment
FACEBOOK