Forums

Updating static files

I replaced a .png on my local computer's static files, updating my logo on my home page. I pushed to my remote repo and then pulled into my pythonanywhere deployment. I ran collectstatic (nothing was collected) and the date is current in the "files" but when I go to the website it still shows the old logo. I reloaded the website. What else do I need to do? I am using a virtualenv.(And which, if any of these things, did I actually not need to do)?

hmm- if collectstatic says "nothing was collected" then it doesn't seem like django realized that the png has changed.

Remember how you configured a specific directory to serve your static files from when you were the pythonanywhere webapp tab? Go to that directory and see if the png file has been chgd there.

If it has, then you may need to refresh your browser/purge the cache.

If it hasn't, the your django settings for static files are probably wrong (which is why it can't see the png has chgd and so did not collect it to the static directory discussed above)