Display image in Django Form

Posted by Mridang Agarwalla on Stack Overflow See other posts from Stack Overflow or by Mridang Agarwalla
Published on 2010-06-18T10:27:43Z Indexed on 2010/06/18 10:33 UTC
Read the original article Hit count: 497

Filed under:
|

I need to display an image in a Django form. My Django form is quite simple - a single text input field. When I initialise my Django form in a view, I would like to pass the image path as a parameter, and the form when rendered in the template displays the image. Is is possible with Django forms or would i have to display the image separately?

Thanks.

© Stack Overflow or respective owner

Related posts about python

Related posts about django