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

apache - setting document root in antoher partition on ubuntu -

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

Process 'command 'F:\android-sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1 -