On Fri, Feb 5, 2010 at 4:27 AM, Daniel Roseman <dan...@roseman.org.uk> wrote:
> Seriously, did you try reading the documentation before asking this
> question? Or searching the group? This is a very frequently asked
> question.
>
> http://docs.djangoproject.com/en/1.1/topics/templates/#variables

why so harsh  to a newbie?  that link doesn't help the question,
{{mydata_dict.key}} won't help, since 'key' here is also a variable.

the answer is:

{% for key, value in mydata_dict.items %}
{{key}} = {{ value }}
{% endfor %}

and is documented in a different part:
(http://docs.djangoproject.com/en/1.1/ref/templates/builtins/#for)
which might not be too obvious to somebody that's new to python.


-- 
Javier

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.

Reply via email to