ValueError: Need 2 values to unpack in for loop; got 3 (actually num_loopvars = 2 and len_item = 3)

2017-07-17 Thread Ogi Vranesic
Michal, Thanks very much for your reply. I guessed, that is something like in your example. And I find it in template. So the conclusion is that there is no more allowed in django template engine to use *for* loop with less elements to unpack, and I think that is also consistent and more pytho

Re: ValueError: Need 2 values to unpack in for loop; got 3 (actually num_loopvars = 2 and len_item = 3)

2017-07-17 Thread Michal Petrucha
On Mon, Jul 17, 2017 at 03:46:30PM +0200, Ogi Vranesic wrote: > Hi > > I have used some templates in older django versions. > But now in django 1.11 using the same templates, the error: > > ValueError: Need 2 values to unpack in for loop; got 3. > > will be raised on line 207 in module django.te

ValueError: Need 2 values to unpack in for loop; got 3 (actually num_loopvars = 2 and len_item = 3)

2017-07-17 Thread Ogi Vranesic
Hi I have used some templates in older django versions. But now in django 1.11 using the same templates, the error: ValueError: Need 2 values to unpack in for loop; got 3. will be raised on line 207 in module django.template.defaulttags by the method render of class ForNode Actually is by me l