A super-simple set of pagination tools for Django 1.8+
Project description
=============================
dj-paginator
=============================
.. image:: https://badge.fury.io/py/dj-paginator.png
:target: https://badge.fury.io/py/dj-paginator
.. image:: https://travis-ci.org/pydanny/dj-paginator.png?branch=master
:target: https://travis-ci.org/pydanny/dj-paginator
.. image:: https://coveralls.io/repos/pydanny/dj-paginator/badge.png?branch=master
:target: https://coveralls.io/r/pydanny/dj-paginator?branch=master
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 %}
{% paginator %}
Done!
Switching to a new theme method 1
---------------------------------
::
# Currently defaults to bootstrap.
# I'll add foundation tomorrow.
PAGINATOR_THEME = 'foundation'
Switching to a new theme method 2
---------------------------------
::
{% load paginator %}
{# 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
dj-paginator
=============================
.. image:: https://badge.fury.io/py/dj-paginator.png
:target: https://badge.fury.io/py/dj-paginator
.. image:: https://travis-ci.org/pydanny/dj-paginator.png?branch=master
:target: https://travis-ci.org/pydanny/dj-paginator
.. image:: https://coveralls.io/repos/pydanny/dj-paginator/badge.png?branch=master
:target: https://coveralls.io/r/pydanny/dj-paginator?branch=master
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 %}
{% paginator %}
Done!
Switching to a new theme method 1
---------------------------------
::
# Currently defaults to bootstrap.
# I'll add foundation tomorrow.
PAGINATOR_THEME = 'foundation'
Switching to a new theme method 2
---------------------------------
::
{% load paginator %}
{# 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.1.0.tar.gz
(5.3 kB
view details)
Built Distribution
File details
Details for the file dj-paginator-0.1.0.tar.gz
.
File metadata
- Download URL: dj-paginator-0.1.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | daa1cb709129c3894f7502846ffcd61b1bcdeed42144eb610f6c2d2ad88f8864 |
|
MD5 | 47992002b073dcaf89db80be886d93fd |
|
BLAKE2b-256 | 6a49200b8a2368a1a65700643117e74e2a2d1d207cccc5309c5244e99d50d734 |
File details
Details for the file dj_paginator-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: dj_paginator-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dda7c45c0c2403bfb6aa685d57afe4f56831723d78b215f7b72b4f324b7eade9 |
|
MD5 | 54c399760640c956e11ed709c9a35a5d |
|
BLAKE2b-256 | ff5a2986b27bcc86a7a0ce4b1ff9decab2128d19739061099e39a342b59eb4a7 |