python - Flask-paginate 不显示分页按钮

标签 python twitter-bootstrap python-2.7 twitter-bootstrap-3 flask

我查看了flask-paginate并使用 pip installflask-paginate 安装它。但是,我在示例应用程序中没有收到任何错误,但没有出现分页,请参阅 screeshot 。为什么我看不到分页按钮?

最佳答案

通过 Jinja |safe 过滤器传递分页输出:

根据文档 (http://pythonhosted.org/Flask-paginate/):

{{ pagination.info|safe }}

关于python - Flask-paginate 不显示分页按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27560139/

相关文章:

python - python : how to loop list to find what elements of list begin with 的循环

python - tastypie 过滤外键相关资源

python - Django 相当于 Rails 的 5 分钟博客演示

html - 在 Bootstrap 中创建水平菜单栏

html - CSS 显示内联

html - 如何使用注册 anchor 标记使用 Bootstrap 模态?

python - 为什么输出总是为零?

python-2.7 - 非位置但需要 argparse 参数

python - 了解类型错误: got multiple values for keyword argument

list - 在 Python 中对集合进行排序与​​对列表进行排序在时间上存在巨大差异