new_obj.created_at=datetime.now()#保存数据db.session.add(new_obj) db.session.commit()#文字提示flash消息闪现flash('修改成功')returnredirect('/admin/')returnrender_template('admin/update.html', new_obj = new_obj,form =form) @app.route('/admin/add/')defadmin_add():'''跳转到后台新闻列...