Answer the question
In order to leave comments, you need to log in
Why is the loop not working correctly in a django template?
There is code like this in a Django template:
https://jsfiddle.net/0k65hdoq/
I expect the result to be multiple p.inner tags inside p.sizes. In reality, all p.inners follow p.sizes, and even inside p.sizes, a lot of spaces have accumulated from somewhere:
https://jsfiddle.net/0k65hdoq/1/
Question: what did I do wrong? Where is the error in the template?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question