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
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.
+ 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