CoreyMSchafer/code_snippets

Image is not displayed

Closed this issue · 2 comments

I am not able to display the image in the templates.

<img` src="images/igl.jpg" alt="">

OUTPUT (In terminal) :
127.0.0.1 - - [11/Apr/2020 19:54:48] "GET /images/igl.jpg HTTP/1.1" 404 -

The image is present in images folder inside the templates folder. I have tried other images with different extensions as well but none worked.
I have tried various things but none of them is displaying the image

file-structure

This is the code image. Please if anyone can rectify this issue.

code

Try changing it to this,

@Letlaka Actually i have resolved this issue I'll upload the solution and close the issue soon.