We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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"])
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: