I need to display an image in Django form. My Django form is very simple - a single text input field when I When I start my own dengue form in a scene, I want to give the image path as a parameter, and the image displays the image when it is provided in the template. Is it possible with Django forms or do I have to display the image separately?
Thank you.
If the image is related to itself, especially not in any area, you can use custom form You can create classes and override one of as_table () , as_ul () , as_p () methods or you Instead of leaving the form to render, you can use a custom template. If this field is related then a custom widget is appropriate, as Pierre has suggested.
Comments
Post a Comment