lundi 20 mars 2017

rendering ordered dic in django template

I have an ordereddic in python which I can access to its element in python using the following code:

for value in orderedDict:
    for val in orderedDict[value]:
        print(orderedDict[value][val])

Now I am trying to render it via django templates. First I used this code and it works.

<body>

</body>

but when I going to access nested values, I can not get any results.

<body>

</body>

Can you help me how can fix this problem?

Aucun commentaire:

Enregistrer un commentaire