I have the following situation:
{% if accounts.count > 0 %}
{% for account in accounts %}
<div>Balance:<b>{{ my_dict.account.id }}</b></div>
<div><a href="/edit/{{ account.id }}"><button>Edit</button></a></div>
{% endfor %}
{% else %}
<p>...</p>
{% endif %}
.
Such arrangement is ok
my_dict.account
But I'll do something like that. I have two dots
my_dict.account.id
Is there any way to do this? It would be a good idea to create a variable in template but it does not work for me