https://github.com/dcramer/django-paging
Sexy pagination in Django
https://github.com/dcramer/django-paging
Last synced: about 2 months ago
JSON representation
Sexy pagination in Django
- Host: GitHub
- URL: https://github.com/dcramer/django-paging
- Owner: dcramer
- License: bsd-3-clause
- Created: 2010-07-14T18:41:00.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2013-05-07T06:51:54.000Z (about 12 years ago)
- Last Synced: 2025-04-10T01:14:10.945Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 166 KB
- Stars: 108
- Watchers: 5
- Forks: 27
- Open Issues: 9
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
About
=====A simple and efficient paginator.
Jinja2
------Jinja2 is supported via Coffin::
{% with paginate(request, my_queryset) as results %}
{{ results.paging }}
{% for result in results.objects %}
{{ result }}
{% endfor %}
{{ results.paging }}
{% endwith %}Django
------Django templatetags require django-templatetag-sugar::
{% load paging_extras %}
{% paginate my_queryset from request as results %}
{{ results.paging }}
{% for result in results.objects %}
{{ result }}
{% endfor %}
{{ results.paging }}