disqus-python icon indicating copy to clipboard operation
disqus-python copied to clipboard

NameError: name 'Paginator' is not defined

Open imrek opened this issue 8 years ago • 3 comments

This example code

paginator = Paginator(api.get, 'trends.listThreads', forum='disqus')
for result in paginator:
    print result

throws the error mentioned in the title.

Probably a little bit of update in the README file would help, I am sure it is outdated, as I have seen in another issue thread.

imrek avatar Mar 18 '16 17:03 imrek

Nevermind, I'll just use the requests library.

imrek avatar Mar 18 '16 19:03 imrek

you must import paginator by the following code: from django.core.paginator import Paginator

CS-Aditya-Rawat avatar Apr 29 '20 15:04 CS-Aditya-Rawat

i had wrote this from django.core.paginator import Paginator but still got the error what should I do

Nandita1090 avatar Jun 11 '21 04:06 Nandita1090