I am trying to use json.loads in my template in order to get a python's dictionnary. But unfortunately, i encounter the same error :
Could not parse the remainder: ' = json.loads(entry.saved_data)' from 'everyEntry = json.loads(entry.saved_data)'
Here is my code from the template :
<tbody>
<tr>
{% for entry in entries %}
{{everyEntry = json.loads(entry.saved_data)}}
{{ everyEntry.items}}
{% for clef, valeura in headersLoop %}
{% for chiave, valore in everyEntry %}
{% if clef = chiave %}
<td>
<p>{{clef}} {{valore}}</p>
</td>
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}
</tbody>
An at this line :
{{everyEntry = json.loads(entry.saved_data)}}
the problem occurs.
How may i fix this ?
Thank you guys.