So I have a variable that is a comma separated string ("val1,val2,val3") and I want to iterate through each element in a Django template like:
{% for host in network.hosts %}
<h3>{{host}}</h3>
{% endfor %}
In this case my csv variable is network.hosts and my expected result would be:
val1
val2
val3
How would I go about doing this?