Get image url from django form
You should try {{ sponsorform.instance.image.url }}
. In case the form is unbounded, you can just do:
{% if sponsorform.instance.image %}
{{ sponsorform.instance.image.url }}
{% endif %}
You should try {{ sponsorform.instance.image.url }}
. In case the form is unbounded, you can just do:
{% if sponsorform.instance.image %}
{{ sponsorform.instance.image.url }}
{% endif %}