jamespacileo / django-pure-pagination

Django pagination based upon the core pagination module
BSD 3-Clause "New" or "Revised" License
701 stars 171 forks source link

、 'Page' object is not iterable #50

Open lijinzhou2016 opened 6 years ago

lijinzhou2016 commented 6 years ago

Exception Type: | TypeError

'Page' object is not iterable

williamlifaith commented 6 years ago

I met this issue too

williamlifaith commented 6 years ago

Hi have you solved this issue?

sonpython commented 6 years ago

in the template you must miss .object_list

{% for person in people.object_list %}

ghjan commented 6 years ago

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)