[Answered ]-Django dict in template

2👍

modules in the template context is moduleData in your view code. But moduleData is a dict, and iterating over a dict yields its keys, not its values.

You need to iterate over the values, try:

{% for module in modules.values %}
    {{module.widget_mqtt_js}}
{% endfor %}

Leave a comment