Seong Kim
Seong Kim

Reputation: 605

How can I display an image from a link in Flask?

Let's say I have an image link: https://i.imgur.com/pPMi9ES.png

In my index.html the I have an HTML img element as following, but the image is blank after all.

<img src="https://i.imgur.com/pPMi9ES.png" width="400px" height="300px"/>

How can fix this?

Upvotes: 0

Views: 525

Answers (1)

charchit
charchit

Reputation: 1522

if you are working on local server and have address like this 127.0.0.1 try changing it to localhost. It worked for me.

Upvotes: 1

Related Questions