By djankowski3
So I am SURE that I am missing a basic step here but it’s driving me nuts.
I followed this tutorial to setup my server: https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04
Everything is working as intended, woohoo! Except… now I am making changes to my templates, meaning primarily the HTML parts. Just editing text here and there that I want to update.
Unfortunately, after I do so, and I upload the files via SFTP (FileZilla) to the app directory’s template folder, it does not reflect the changes on the site. I’ve restarted nginx, confirmed the correct files are going to the correct folder (I think?), tried collectstatic again (which does not update anything, though I am only changing the html so I wouldn’t expect it to), and cleared my local cache (tried incognito, etc.).
Am I just missing something regarding how to make those changes reflect on the actual website? I go to my domain (which works to connect to my nginx server) but it just shows the original base.html page that I first uploaded. I can’t get any changes to take place when I visit the site.
Thoughts??
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 don’t have any caching enabled in Django that I know of:
TEMPLATES = [ { ‘BACKEND’: ‘django.template.backends.django.DjangoTemplates’, ‘DIRS’: [], ‘APP_DIRS’: True,
That’s a great bit of advice to try, but I’m not sure which permissions you’re talking about nor which command to do that.
Do I have to do it after every upload?
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.