Hi I have very basic question.
I have view like below:
def view1:
dict = ('one':'itemone','two':'itemtwo','three','itemthree')
return render_to_response('test.html',dict)
test.html
<body>
{% for key,value in dict.items %}{{ value }}{% endfor %}
</body>
it doesn’t work. Can anyone suggest the correct method to iterate dictionary values in a template. Thanks in advance. Once again am sorry for my basic question.
I think you want
and