disqus / disqus-python

Disqus API bindings for Python
https://disqus.com/api/docs/
Apache License 2.0
165 stars 51 forks source link

NameError: name 'Paginator' is not defined #30

Open imrek opened 8 years ago

imrek commented 8 years ago

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 commented 8 years ago

Nevermind, I'll just use the requests library.

CS-Aditya-Rawat commented 4 years ago

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

Nandita1090 commented 3 years ago

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