、 'Page' object is not iterable
Opened this issue · 4 comments
lijinzhou2016 commented
Exception Type: | TypeError
'Page' object is not iterable
williamlifaith commented
I met this issue too
williamlifaith commented
Hi have you solved this issue?
sonpython commented
in the template you must miss .object_list
{% for person in people.object_list %}
ghjan commented
I got this error too.
it's strange that it's not always present, on one page there is error , but on another page it is ok.
Even I do not use page in html file, it will report error when django render the html page.
I use django 1.11.13
TypeError: 'Page' object is not iterable
E:\venv\imooc\Lib\site-packages\django\template\defaulttags.py
if not hasattr(values, '__len__'):
values = list(values)
len_values = len(values)