from django.core.paginator import Paginator
iter = 'abcdefhijklmnopqw'
paginator = Paginator(iter,4)
paginator.page(1)
<Page 1 of 5>
page1 = paginator.page(1)
page1.object_list
'abcd'
page3 = paginator.page(3)
page3.object_list
'jklm'
2024-02-14 15:40:58
from django.core.paginator import Paginator
iter = 'abcdefhijklmnopqw'
paginator = Paginator(iter,4)
paginator.page(1)
<Page 1 of 5>
page1 = paginator.page(1)
page1.object_list
'abcd'
page3 = paginator.page(3)
page3.object_list
'jklm'