By peterdp
Hi, I have set up Ubuntu, Python3.7, Django3.0.2 and Postgres as per the DigitalOcean tutorial on a DigitalOcean server. Gunicorn works and the Nginx server loads but only gets a 404 error from the browser. Has anyone had this error and fixed it, or is there a tutorial I can refer to. I’m new to Nginx. Thanks
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!
Hi @peterdp,
It seems you haven’t configured your server blocks in Nginx properly. DigitalOcean have a pretty good tutorial how to do that. You can check that here :
Additionally, there is another article which can help you with your problem. It’s about configuring Django with Nginx. You can view that here as well
If you experience issues with your application after you’ve checked both articles. Please post your Nginx virtual file for your domain here.
Regards, KDSys
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.