Get image url from django form
<p>I have dificulties to get the image url out of django form.</p>

<p>Model:</p>

<pre><code>class Sponsor(models.Model):
    image = ProcessedImageField(upload_to='sponsors/', 
                                processors=[SmartResize(300, 120, upscale=False)],
                                format='JPEG', 
                                options={'quality': 100}, 
                                null=True)
</code></pre>

<p>Form:</p>

<pre><code>class SponsorForm(forms.ModelForm):

    class Meta:
        model = Sponsor
        fields = ('image',)
</code></pre>

<p>When I render it using:</p>

<pre><code>{{ sponsorform.image }}
</code></pre>

<p>It prints: </p>

<pre><code>Currently: &lt;a href="/media/sponsors/random1.jpg"&gt;sponsors/random1.jpg&lt;/a&gt; &lt;br&gt;Change: &lt;input id="id_sponsor-image" name="sponsor-image" type="file"&gt;
</code></pre>

<p>So my question is, how to get that url in templates? I've tried:</p>

<pre><code>{{ sponsorform.image.url }}
{{ sponsorform.image.path }}
{{ sponsorform.image.href }}
</code></pre>

<p>But nothing seems to work, any suggestions?</p>