1👍
✅
1
is hard-coded. So the first page is fetched.
page = paginator.page(1)
Use the page
parameter passed:
page = paginator.page(int(request.GET.get('page', '1')))
0👍
In my case, I was passing wrong argument in query param for page no. It was page
but I was passing page_no
Source:stackexchange.com