Wednesday, October 14, 2020

Re: django template forloop

Hi,

 You have to end for loop for second for loop

On Wed, Oct 14, 2020 at 4:23 PM luca72.b...@gmail.com <luca72.bertolotti@gmail.com> wrote:
Hello 
I have this:
{% for x in lista_form %}
            {% if forloop.counter < 100 %}
            {% for fieldi in formone %}
                {{ fieldi.label }} {{ fieldi }}
                {% endfor %}
            Immagine <input type="file" name="{{ x }}" id="id_immagine">
             {% endif %}  
            {% if forloop.counter|divisibleby:"2" %}
            <br>
            {% endif %}

The second forloop is not executed, where i have to apply it?

Thanks

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7a3e9bec-7e96-4922-ac0d-765ab49eb0d7n%40googlegroups.com.


--
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK5m314L9XN-xiXXzDtx2sr9TZTysY9oyxLjF2De7zCfQ8MAmA%40mail.gmail.com.

No comments:

Post a Comment