My question is if there's a way to obtain a value of a dictionary given a key. For example, imagine that my_dictionary is {1:'a', 2:'b', 3:'c'}and I have an attribute which is key which equals 1. How can I obtain 'a'? I tried with {{my_dictionary.key}}and {{my_dictionary.{{key}} }}but none of them worked. My idea is to do the same as with python, which is my_dictionary[key] but in a Django Template.
Thank you
 
     
    