Added jpegs/png to basic site, but they are not available

August 12, 2018 917 views
Django Ubuntu 18.04

I apologize in advance, as perhaps this is an error on my part. Using Filezilla I added and updated pictures in my "static" folder. When I updated the html to use those new pictures (instead of older ones), and uploaded the new html template, the pictures were missing. I reverted back to the original template and the old pictures came back in production. Not to be outdone, I just renamed the new pictures as the old pictures and sure enough the old pictures were still there! I've searched a lot but I think this problem is so basic that no one runs into it.

Not sure if this is relevant, but the "Owner/Group" of the new/updated photos is different from the existing ones.

<img src="{% static 'guestbook/images/software-img.png' %}" class="img-responsive" alt="home img">

1 Answer

Had to do with django. needed to run manage.py collectstatic when images were updated.

Have another answer? Share your knowledge.