> return render_to_response('webpage.htm', {'manu': s, 'thelist': > mylist}) > > ///////////////////////////////////////// > > Here is what I have in my template > > {% for a in manu %} > <a href="/test/">{{ thelist.{{forloop.counter0}} }}</a> > {% endfor %}
Given that you're not using "a" in your loop, is there a reason not to just use {% for item in thelist %} <a href="/test/">{{ item }}</a> {% endfor %} If you do actually use "a" in your loop, it sounds like you want to do something like use the zip() function to pair up your items: return render_to_response('page.htm', {'manu': zip(s, mylist)}) which should allow you to use (hypothesizing that the "a" is used to build the link) {% for pair in manu %} <a href="{{ pair.0 }}">{{ pair.1 }}</a> {% endfor %} In the development version of Django, the for-loop has been enhanced to allow for the cleaner syntax {% for link, description in manu %} <a href="{{ link }}">{{ description }}</a> {% endfor %} -tim --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---