Need help with flask-paginate?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

lixxu
226 Stars 75 Forks Other 144 Commits 5 Opened issues

Description

Pagination support for flask

Services available

!
?

Need anything else?

Contributors list

# 44,794
Python
Flask
paginat...
C
53 commits
# 228,536
Shell
bookmar...
Flask
CSS
3 commits
# 73,485
Shell
Less
Flask
node
2 commits
# 376,295
Flask
HTML
paginat...
Shell
2 commits
# 369,175
Flask
CSS
paginat...
C
2 commits
# 318,235
prometh...
HTML
Flask
flask-s...
2 commits
# 615,209
Flask
HTML
CSS
paginat...
1 commit
# 213,760
Flask
paginat...
cookiec...
Webpack
1 commit
# 1,929
penetra...
phantom...
svd
python-...
1 commit
# 545,606
jinja2
Flask
HTML
CSS
1 commit
# 70,698
Shell
Java
C
Flask
1 commit
# 290,379
Shell
CSS
WordPre...
webdav
1 commit
# 8,600
Common ...
Flask
pinyin
reactjs
1 commit
# 615,210
Flask
HTML
CSS
paginat...
1 commit
# 85,510
Flask
hdf5
scikit-...
TeX
1 commit
# 41,412
Python
Shell
soundex
Django
1 commit
# 620,021
Flask
HTML
CSS
paginat...
1 commit
# 617,589
Flask
HTML
CSS
paginat...
1 commit
# 594,047
Flask
HTML
CSS
paginat...
1 commit
# 321,298
Flask
HTML
CSS
paginat...
1 commit

flask-paginate

Pagination support for flask framework (study from will_paginate). It supports several css frameworks. 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 the 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 documentation: 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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.