0

Pycharm HTML image help

How do I get this code to display an image with Pycharm <body> <img src=“image.jpg”> <body/> I copied the image to the templates directory of my Pycharm project and created a html file with the above code to test but it doesn’t display the image

7th May 2020, 1:22 PM
Nwanakwoakwo Wid'obiagu (kenneth Anyanwu)
Nwanakwoakwo Wid'obiagu (kenneth Anyanwu) - avatar
2 Respostas
+ 2
Easy solution: put image.jpg and HTML in same directory. Just a bit harder: I suggest using a relative path to your image.
7th May 2020, 10:38 PM
Kevin ★
+ 1
Kevin Star thanks a lot i tried that but id didnt work however ive sorted it out by creating static directory and copying the image to an images directory in it
8th May 2020, 1:07 AM
Nwanakwoakwo Wid'obiagu (kenneth Anyanwu)
Nwanakwoakwo Wid'obiagu (kenneth Anyanwu) - avatar