Open sscots opened 3 years ago
In my flask restless file, I have a read user and a write user. Each has their own db session. This is basically what I'm trying to do at the moment:
manager = flask_restless.APIManager(app, session=read_session) server = manager.create_api(Server, methods=["GET"]) admin_manager = flask_restless.APIManager(app, session=write_session) server_admin = admin_manager.create_api(Server, collection_name='server_admin', methods=["GET","POST","PUT","PATCH","DELETE"])
but am getting an error that says: "Flask-Restless has already been initialized on this application"
I also tried this and it doesn't seem to work either
manager = flask_restless.APIManager(app, session=read_session) server = manager.create_api(Server, methods=["GET"]) manager.session = write_session server_admin = manager.create_api(Server, collection_name='server_admin', methods=["GET","POST","PUT","PATCH","DELETE"])
In my flask restless file, I have a read user and a write user. Each has their own db session. This is basically what I'm trying to do at the moment:
but am getting an error that says: "Flask-Restless has already been initialized on this application"
I also tried this and it doesn't seem to work either