user977828
user977828

Reputation: 7679

flask-paginate does not show pagination buttons

I checked out flask-paginate and also install it with pip install flask-paginate. However, I do not get any errors with the example app, but pagination does not appear see screeshot. Why do I not get the pagination buttons?

Upvotes: 1

Views: 1211

Answers (2)

Luis E. Tura
Luis E. Tura

Reputation: 1

I encountered this and the default offset to flask-paginate was 10, adding 1 entry showed me the pagination.links. Hope this helps...

Upvotes: 0

nathancahill
nathancahill

Reputation: 10850

Pass the paginate output through the Jinja |safe filter:

Per the documentation (http://pythonhosted.org/Flask-paginate/):

{{ pagination.info|safe }}

Upvotes: 3

Related Questions