Display items from a list in django html

0

My code is as follows:

{% for item in saldo %}
{{item}}
{% endfor %}

And I would like to present the numbers (in the image), each in each line. Does anyone know how? I tried to make a "for" inside the post but it does not work.

    
asked by anonymous 02.01.2018 / 15:35

2 answers

0

Try changing the code for this:

{% for item in saldo %}
  <div>{{item}}</div>
{% endfor %}

I've never messed with Django, but I imagine it can solve.

    
02.01.2018 / 15:52
0

Attempt to add a line break:

{{item}} <br/>
    
03.01.2018 / 20:36