On Jul 9, 10:36 pm, Shawn Milochik <sh...@milochik.com> wrote: > Make an iterable in your view (list or tuple) containing lists or tuples > of two items -- the text and the image link. > > Then iterate through that in your template with a 'for' tag.
This doesn't work. The webpage text is one object (just one textfield), and the images are multiple objects.The list of images would be added before or after the text, instead of replacing {{ image1 }} with <img src="pathto my images1"> I would get: lots of text even more text <img src="path to my image1"> <img src="path to my image2"> Instead of the desired: lots of text <img src="path to my image1"> even more text <img src="path to my image2"> -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.