By leebr1
I successfully got my Django application my server. However, I realized that I accidentally left DEBUG=True in my settings.py file. I tried setting DEBUG=False in the file, but the website won’t reflect that change. I also tried doing sudo service nginx restart but that didn’t put the change on the website. What do I need to do to get the change in effect?
As an additional note, I followed the tutorial below to get my project into production. https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04
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!
This comment has been deleted
Hi @leebr1
When doing changing to the project, restarting Nginx doesn’t do a lot, since Nginx is just proxying data between the visitor and Gunicorn, so restart Gunicorn instead:
sudo systemctl restart gunicorn
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.