1👍
✅
First of all you should to rename variable and attribute names so that they aren’t in conflict with built-in names like dict
.
Now, in normal Python code, use the first way.
However, if you are trying to access it from the Django template, use the second one.
👤K Z
Source:stackexchange.com