Forums

Can't Show Images

I am unable to show uploaded images on my website. I can't click on the images when they are in the folder, and I can't seem to delete them either. Whenever I upload the image, I can see by the code what should be there by inspecting the element, but for some reason my code gets overridden, and the css in the website hides the image in basically every way possible. Even by undoing those changes in inspect element, nothing changes. The code I have for the image is <img src="/static/twitter.jpg", height="120", width="120">, but even when I replace the static with the entire image address, it doesn't work. How can I get this image to show in my website?

And, to a lesser degree because the pictures take up minimal space, how do I delete images? Unless I delete the entire folder, I am unable to delete images.

Another weird thing I noticed: if I change the image to twitter.png (intentionally using the wrong image type) , it at least shows a blank box of an unloaded image, with twitter.jpg there is just literally nothing there.

Take a look at https://help.pythonanywhere.com/pages/DebuggingStaticFiles/