@app.route('/') def index(): article1 = Article.query.filter(Article.title == 'a').first() article1.title = 'A' db.session.commit() return 'Index.'