How can I do this:
x = 'id_1'
d = {'id_1':1, 'id_2':2}
print d[x]    
in django template, I've tried this:
{% for field in form %}
    <tr>
        <th><label for="{{ field.auto_id }}" >{{ field.label }} </label></th>
        <td>Some text from dict: {{context_dict.field.auto_id}} {{field}}</td>
     </tr>
{% endfor %}
in context_dict.field.auto_id, I need context_dict.[field.auto_id]
Do you guys have any ideas?
 
    