I'm new to django so I apologize if after reading through the docs and list I missed something obvious. I would like to do something like this in a template:
{% for index in range(10) %} but I can't seem to find anything that will allow this. I've become used to the idea that when something that should be easy seems hard I am usually going about it the wrong way, but in this case I'm pretty certain this logic belongs in the template. I've got space for 15 image thumbnails, but when I only have say 5 thumbnails I want to fill the space with a standard filler thumbnail for purely aesthetic reasons. The only alternative I can think of is to make an arbitrary list of the correct length in my view and pass it to the template, but this seems silly. What am I missing? Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---