Forums

updated images not displaying on website

Hello, I recently updated my file on github and then I reloaded it in pythonanywhere. I added some new images to the folders as well as updated the code. When I try running the website after refreshing it, I am not able to see the new images on my website. I do see the information in the file tab but not when I deploy the website. Thank you in advance for your help.

Could you give an example of a URL that's not showing an image that you would expect to see there, and the full path to the image file in question?

Hello Giles, Here is the URL: https://vagooscar24.pythonanywhere.com/about.html

Here is the path to the image: https://github.com/Oscar568/Oscar-s-portfolio/blob/main/static/assets/1000015745.JPG?raw=true https://github.com/Oscar568/Oscar-s-portfolio/blob/main/static/assets/offplane.JPG?raw=true

Thank you in advance and please let me know if you need anything else.

Did you reload your web app by clicking the button on the web app tab?

Yes I did multiple times and still didnt fix it. Also here is snip of my code just in case you see something I am missing. <div class="col-xs-12 col-md-6"> <img src="static/assets/1000015745.jpg" class="img-responsive" alt=""> </div> <div class="col-xs-12 col-md-6"> <img src="static/assets/offplane.jpg" class="img-responsive" alt=""> </div>

Try replacing "static/..." with "/static/..." in the image file paths.

Yes I did that and still didnt change the outcome.

We have a help page here for debugging issues with static files: https://help.pythonanywhere.com/pages/DebuggingStaticFiles/