Nice paginator for Django
Project description
This Django app provides a templatetag to render pagination widgets which include a range of pages around the current active one.
Status
Installation
pip install django_rangepaginator
Update your Django settings:
INSTALLED_APPS += [
'django_rangepaginator'
]
Usage
{% load rangepaginator %}
{% paginate page request=request %}
The following options are available:
distance: number of pages around current active one (default = 2)
edge: number of pages at the start and end (default = 1)
extra_class: add extra css classes to the pagination div (default = ‘’)
text_labels: use strings for previous/next instead of symbols (default = True)
Demo
A sandbox environment is available in the repository, run the following:
./sandbox/manage.py migrate
./sandbox/manage.py runserver
Bugs/features
Let me know! :-)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-rangepaginator-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82ab59e31e56712b89911a73d117b341de774e45b0b7e4723c43153c467b94a7 |
|
MD5 | a0679539872d7c3c2e78e501140dad60 |
|
BLAKE2b-256 | 06e1110f1427716e1e2b1abde8150da67a59b9747f77978de5dfcfddc1b8d047 |
Close
Hashes for django_rangepaginator-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77c1d6ae4a1fe258832cecc78cb8181c6c5856a2c7b62b07c2339337a0569825 |
|
MD5 | 25919c0409b5ad0d5020e7e56d011782 |
|
BLAKE2b-256 | b8f02027c9ee3bbbc36e1a3dd6f6cf947818336e108e211ebe572415265f2dca |