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
5/7/2020 1:22:05 PM
Nwanakwoakwo Wid'obiagu (kenneth Anyanwu)2 Answers
New AnswerEasy solution: put image.jpg and HTML in same directory. Just a bit harder: I suggest using a relative path to your image.
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
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message