Hi… I did the configuration of a Droplet in Digital Ocean with Django-1-click. I using a new directory or my proyect, at the same level as the example project “django_project” created by default. I change the new project location in the file: /etc/systemd/system/gunicorn.service and change the config file: /etc/ nginx/sites-available/default
And I run the command: python3 manage.py collectstatic
For Nginx to serve the Static and Media, but it does not do it well since it still takes the default configuration.
I can see that it is looking for them in the project path by default: /django/django_project/django_project/static, I moved the static ones and it worked because I did not get the style right, but I do not know where that route is taking to be able to change it!
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!
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.