I’m following this guide. The development methods for serving my Django app work (using python manage.py runserver and gunicorn --bind 0.0.0.0:8000 myproject.wsgi:application), but when I set up the systemd and Nginx configuration files, I just get a 502 Nginx error page. I believe that Nginx is supposed to create the relevant .sock file at some point, but I don’t see one in my project directory.
Ultimately, I would actually like my Django app to be served on a subdirectory of the domain, like mysite.com/sub/, since there is a website currently being served on the root domain.
Your help is greatly appreciated,
Nathan
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 have have exactly the same problem as well. A little help with be really appreciated.
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.