python - how to display uploaded image with FileField in django template -


i'm learning django , i'm trying create simple upload site. figured out should use django filefield purpose want know how display images uploaded using field on index page using django template . know can use imagefield in case i'm trying know if possible filefield ?

<img src="{{fileobj.url}}"/> 

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -