244boy 244boy - 2 months ago 16
Python Question

Templates do not shows up the image

The

img
tag do not shows up.
The
mem.mem_img
is
/uploads/images/team2.png
, and in my template:

<div>
<img src="{{ mem.mem_img }}">
</div>


In the browser the image do not shows up.



In the browser debugger:
enter image description here

How can I shows the image?

Answer Source

In your app create a folder called "static". Suppose your app name is "sample" then place your image file in "sample/static/sample/images/imagename.png" where images is the subfolder. Then try. I hope it works.