Question
Bad Request (400) after making supervisor restart
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
Have you changed
settings.DEBUG
before restart?When you change
DEBUG
setting to False, you must also setALLOWED_HOSTS
.You may simply make Django accept requests by allowing localhost:
This will work if gunicorn is running on same machine and it is bound to 127.0.0.1