After restarting my django app: supervisorctl restart [process] I’ve got Bad Request(400) error when visiting my site. The app is under nginx with gunicorn and supervisor.
I remember to had the same problem some time ago and restarting supervisor from some specific folder on the server had helped. I’ve tried to restart supervisor from different locations, however it doesn’t help.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I’m having the same problem. With… DEBUG = True ALLOWED_HOSTS = [‘127.0.0.1’]
…the page displays. If I set DEBUG to False, I get the Bad Request(400) error.
It would be great if this could be clarified in the tutorial.
Could you provide some more information to help us figure out what might be happening here? Is there anything logged in /var/log/nginx/error.log <br> <br>If you launch it manually, is there any gunicorn error output to the command line? <br> <br>Thanks!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.