4๐
โ
I have used the โPaginator Tagโ with success to achieve the style of pagination you are looking for (often called โDigg-styleโ pagination). Usage is explained in the article โA Recipe for Pagination in Djangoโ.
๐คuser635090
1๐
I have used the following package, and it is nice and simple to use.
https://github.com/jamespacileo/django-pure-pagination
It solves the common issue of not displaying every single page in the template, but rather showing a range.
The setting make such an implementation very easy:
PAGINATION_SETTINGS = { 'PAGE_RANGE_DISPLAYED': 10, 'MARGIN_PAGES_DISPLAYED': 2, 'SHOW_FIRST_PAGE_WHEN_INVALID': True, }
๐คAvi Kaminetzky
Source:stackexchange.com