title: Display images in Django
body: <p>I have a django app which allows users to submit an image with it. Right now my model looks like </p>
  
  <pre><code>class Posting(models.Model):
      title = models.CharField(max_length=150)
      images = models.ForeignKey(Image, null=True)
  
  class Image(models.Model):
      img = models.ImageField(upload_to="photos/",null=True, blank=True)
  </code></pre>
  
  <p>and I am trying to display the images in my template however I cannot seem to get it to work. I have gone though countless stack overflow posts and haven't had any luck. In my template I have </p>
  
  <pre><code>{ for post in postings }
      &lt;img src"{{ post.image.url }} #and many variations of this
  </code></pre>
  
  <p>however other seems to display the url. The url seems to always be blank. Any help would be greatly appreciated! </p>