you are implementing logic into the templates, which django templating
attempts to prevent.

On Jun 17, 12:27 pm, Keybo <[EMAIL PROTECTED]> wrote:
> Hello,
>        I have a question regarding displaying information in django
> templates. I would like to display a nested dictionary(Hash) in the
> templates. However the only problem is that the values in the
> dictionary are either strings or other dictionaries. If there a way of
> knowing the type of value in the template ?
> For eg:
>         for key_value in dictionary.items:
>              if key_value.1 isTYPE String:
>                do something
>              if key_value.1 isTYPE Dictionary:
>                do something else
>
> Thanks in advance,
> Lezan
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to