A super-simple set of pagination tools for Django 1.8+
Project description
A super-simple set of pagination tools for Django 1.8+
Documentation
The full documentation will soon be at https://dj-paginator.readthedocs.org.
Features
Super simple code base.
Easy to create and switch themes.
Really good documentation! (coming soon)
Really good tests! (coming soon)
Class-Based View mixin so you don’t need to load template tags (coming soon)
Quickstart
Install dj-paginator:
pip install dj-paginator
In your installed apps:
INSTALLED_APPS = [ 'paginator' ]
In your list view:
class MyListView(ListView): model = MyModel paginate_by = 10
In your list view template:
{% load paginator_tags %} {% paginator %}
Done!
Switching to a new theme method 1
# Currently defaults to bootstrap. # I'll add foundation soon. PAGINATOR_THEME = 'foundation'
Switching to a new theme method 2
{% load paginator_tags %} {# Is the default #} {% bootstrap_paginator %} {# For when I add the foundation theme#} {% foundation_paginator %}
History
0.1.0 (2015-07-26)
First release on PyPI.
Inception
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dj-paginator-0.2.1.tar.gz
(7.0 kB
view hashes)
Built Distribution
Close
Hashes for dj_paginator-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 505204fc2a1ac962540584ee6098b69c7a6d1cc69c12ad85b4c18e1b9804e0e4 |
|
MD5 | 35e940f9269cbfd39517bcbbb34bbdb2 |
|
BLAKE2b-256 | d6bba8fb9629c6bc95d4a02ae853736fe012a77ad875b567fdddd46f785228d8 |