On Tue, Aug 18, 2009 at 10:55 AM, elminio <[email protected]> wrote:
>
> Hi,
>
> Im passing to the template dictionary and I would like to get by key
> to the value of that dictionary and if the key doesnt exist in it
> insert blank field into html
>
> thank You very much for help
The template language is purposefully simple. So try:
{{ dict.key }}
This will give you the value if the key exists and by default will be blank
if it does not.
Simple,
Hope that helps,
Michael
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---