disqus-python
disqus-python copied to clipboard
NameError: name 'Paginator' is not defined
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.
Nevermind, I'll just use the requests
library.
you must import paginator by the following code: from django.core.paginator import Paginator
i had wrote this from django.core.paginator import Paginator but still got the error what should I do