In your Django template put something like this:
- <ul>
- {% for object in object_list %}
- <li>{{ forloop.counter0|add:page_obj.start_index }}. {{ object }}</li>
- {% endfor %}
- </ul>
Where:
object_list - is a list of objects produced by pagination;
page_obj - is a page object produced by pagination
page_obj ...