Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lixxu/flask-paginate
Pagination support for flask
https://github.com/lixxu/flask-paginate
flask paginate
Last synced: 4 days ago
JSON representation
Pagination support for flask
- Host: GitHub
- URL: https://github.com/lixxu/flask-paginate
- Owner: lixxu
- License: other
- Created: 2012-10-07T12:21:45.000Z (over 12 years ago)
- Default Branch: main
- Last Pushed: 2024-12-23T11:10:06.000Z (20 days ago)
- Last Synced: 2024-12-31T21:05:25.360Z (11 days ago)
- Topics: flask, paginate
- Language: Python
- Size: 324 KB
- Stars: 284
- Watchers: 7
- Forks: 80
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-flask - Flask-Paginate - Pagination support for Flask (Utils)
- awesome-flask - Flask-Paginate - Pagination support for Flask (Utils)
- awesome-flask - Flask-Paginate - Pagination support for Flask (Utils)
- jimsghstars - lixxu/flask-paginate - Pagination support for flask (Python)
- best-of-web-python - GitHub - 12% open · ⏱️ 14.05.2024): (Flask Utilities)
README
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:
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 5000Open to see the example page.
![demo](/example/demo.png "demo")