On Tue, Aug 18, 2009 at 10:55 AM, elminio <wgruszczyn...@gmail.com> 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 django-users@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 -~----------~----~----~----~------~----~------~--~---