I am relatively new to both python and django. Please help me to do this :
{% for letter in [A to Z] %} <---- how do I write this line in a template?
<a href=/contacts/entity/?index={{letter}}/>{{letter}}</a>
{% endfor %}
Thanks in advance
Regards Ganesh
Thanks for your lightning fast replies. I tried this and it worked :
#my view function
return render_to_response(template,
{'object_name' : object.__name__,
'app_label' : object._meta.app_label,
object_list_name : object_list,
'base_template' : base_template,
'alphabet_string' : ascii_uppercase },
RequestContext(request))
#my template
{% for letter in alphabet_string %}
{{ letter }} -
{% endfor %}
Thanks once again
Regards Ganesh
-- Ned Batchelder, http://nedbatchelder.com
Thanks Ned
Regards Ganesh