[Fixed]-Cannot access python dictionnary keys in django template

1👍

You cannot do lookup in a dictionary in template using a variable, dict in template would always treat what’s after the dot as a string lookup like second_dict['owner_name']. You need to write a template filter to do it. Check django doc on how to write custom filter.

Leave a comment