M
M
MeinJun2020-06-15 18:33:42
Flask
MeinJun, 2020-06-15 18:33:42

Flask Pymongo. How to make a conclusion on 100 records?

There is such a Route:

@app.route('/', methods=['GET'])
    def index():
        txt = mongo.db.base.find({}, {'title': 1, 'text': 1, '_id': 0})
        return render_template('Index.html', txt=list(txt))


The database stores 100,000 records that are displayed in html.

How to make a conclusion on 100 records? Or how to make pagination with Flask and Pymongo?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question