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

Posted August 12, 2018 2.2k views
DjangoUbuntu 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">

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

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