Skip to content
Pagination support for flask
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
example add skip attribute, read version from source file Feb 3, 2019
flask_paginate add skip attribute, read version from source file Feb 3, 2019
tests page/per_page parameter can be customized now, up to version 0.5.0 Jun 16, 2017
.gitignore
LICENSE add source files Oct 7, 2012
README.md update document link to rtf Oct 5, 2017
setup.py add skip attribute, read version from source file Feb 3, 2019
test-requirements.txt page/per_page parameter can be customized now, up to version 0.5.0 Jun 16, 2017

README.md

flask-paginate

Paginate support for flask framework (study from will_paginate). Use bootstrap for css framework It requires Python2.6+ as string.format syntax.

If you want to show pagination-info ("Total 100 posts, displaying 20 - 30") above the pagination links, please add below lines to your css file::

.. sourcecode:: css

.pagination-page-info {
    padding: .6em;
    padding-left: 0;
    width: 40em;
    margin: .5em;
    margin-left: 0;
    font-size: 12px;
}
.pagination-page-info b {
    color: black;
    background: #6aa6ed;
    padding-left: 2px;
    padding: .1em .25em;
    font-size: 150%;
}

Full documention: http://flask-paginate.readthedocs.io

Run example:

$cd example
$python sql.py
$python sql.py init_db
$python sql.py fill_data --total=310
$cp app.cfg.example app.cfg
$echo edit app.cfg
$python app.py --port 5000

Open http://localhost:5000 to see the example page.

demo

You can’t perform that action at this time.