Models:

```
class Design(models.Model):
    title = models.CharField(max_lengt=255)

class DesignImg(models.Model):
    design = models.ForeignKey(Design)
    img = models.ImageField(upload_to="project_images")

```

views:

```
def index(request):
    d = Design.objects.all()
    return render_to_response('index.html',{'d':d},context_instance=RequestContext(request))

```

templates(this is incorrect):

```
{% for a in d %}
    <img src="{{ a.img.url }}"/>
{% endfor %}

```

How to display all my `img`in template?