Question

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

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">


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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