User/group names must match [a-z_][a-z0-9_-]*[$]
Как удалять строки, к примеру нужно удалить все строки где group='setting'?
db.session.query(Setting).filter_by(group='setting').delete()
update(), save_or_update(), save() are all deprecated. add() places an object in the session in all cases, using the persistence information already associated with the object to determine INSERT or UPDATE. this means if you just make a new Foo(id=some id), that's transient - SQLAlchemy didn't load it. It will be INSERTed.
@app.route('/user', methods=['GET', 'POST'])
@app.route('/user/<int:id>', methods=['GET', 'PUT', 'DELETE'])
def users(id=None):
if request.method == 'GET':
users = User.query.all()
return jsonify(num_results=len(users),
objects=[user.serialize() for user in users])