How To Show Correct List Item Indexes When Using Pagination in Django
In your Django template put something like this:
1 2 3 4 5
object_list - is a list of objects produced by pagination;
page_obj - is a page object produced by pagination
page_obj.start_index - is a number each page starts with, so basically, we add this number to a zero forloop counter.