Pagination in classed based views

Hi,
So, I’m trying to paginate my site by using paginate_by (because I’m using classed based views) and I keep getting the same page, so basically I think the paginate_by is being overwritten.
I tried to use paginate_queryset but I don’t think it’s correct.

This is how I used:
results = self.paginate_queryset(self.get_queryset(), 1)

If you are using a ListView, and following the docs at Pagination | Django documentation | Django, you’ll see that you don’t need to also use paginate_queryset. Set the paginate_by attribute and modify your template accordingly.

If this doesn’t resolve the issue, please post the view along with the template being rendered.

my get_context_data was missing stuff, so thats why wasn’t working I guess. Thank you very much for your reply :smiley:

Interested. “Missing stuff”?