Giter VIP home page Giter VIP logo

Comments (11)

lixxu avatar lixxu commented on May 24, 2024

sorry, 0.5.2 added skip attribute, please update it and try again.

from flask-paginate.

zht3344 avatar zht3344 commented on May 24, 2024

@lixxu 谢谢,更新之后没有那个错误了,但是网页仍旧显示的不对

image
我检查了很久不知道哪里错了,能帮我看下错误吗?谢谢

`def index():
search = False
q = request.args.get('q')
if q:
search = True

page = request.args.get(get_page_parameter(), type=int, default=1)
per_page = int(request.args.get('per_page', 2))

print(page,per_page)
selectdata = User.query.filter_by(password='123456').all()

paginate = Pagination(page=page, total=len(selectdata), search=search, record_name='users',per_page= per_page,per_page_parameter = 'per_page')
return render_template('index.html',
                        page=page,
                        per_page=per_page,
                       stus=selectdata,
                       paginate=paginate,
                       )`

from flask-paginate.

lixxu avatar lixxu commented on May 24, 2024

css框架用的哪个? 默认是bootstrap2

from flask-paginate.

zht3344 avatar zht3344 commented on May 24, 2024

用的是默认的,会有错误吗

from flask-paginate.

lixxu avatar lixxu commented on May 24, 2024

那你的html里引用了bootstrap2了吗?有它对应的css文件等了吗?

from flask-paginate.

zht3344 avatar zht3344 commented on May 24, 2024

每页显示的内容应该是两条,但是他把所有的4条信息都显示出来了,这是前端的问题吗😂

from flask-paginate.

zht3344 avatar zht3344 commented on May 24, 2024

第一页,第二页显示的内容一样😂
image
image

from flask-paginate.

lixxu avatar lixxu commented on May 24, 2024

先把前端的弄正确了再说

from flask-paginate.

zht3344 avatar zht3344 commented on May 24, 2024

前端的现在格式对了,是bootstrap4的
image

image
但是显示的信息条数还是不对😥,正确的应该是每页有两条信息

from flask-paginate.

lixxu avatar lixxu commented on May 24, 2024

数据查询时没有作分页处理.

from flask-paginate.

zht3344 avatar zht3344 commented on May 24, 2024

谢谢,问题解决了,😁

from flask-paginate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.