views:

39

answers:

0

Take a simple view like this:

def my_gallery(request):
    images= ?
    t = Template("<html><body>Here my images from XY {{ images }}.</body></html>")
    html = t.render(Context({'images': ? }))
    return HttpResponse(html)

How do I have to define the variable images/ What do I have to fill in the Context so that Django displays me:

1 image more than 1 image 1 soundfile more than 1 soundfiles

on the site my_gallery

Thanks!