Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: name 'Paginator' is not defined #30

Open
imrek opened this issue Mar 18, 2016 · 3 comments
Open

NameError: name 'Paginator' is not defined #30

imrek opened this issue Mar 18, 2016 · 3 comments

Comments

@imrek
Copy link

imrek commented Mar 18, 2016

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
Copy link
Author

imrek commented Mar 18, 2016

Nevermind, I'll just use the requests library.

@CS-Aditya-Rawat
Copy link

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

@Nandita1090
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants