Answer the question
In order to leave comments, you need to log in
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))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question