Skip to content
New issue

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

Setting API other than using Meta? #22

Open
evandavey opened this issue Apr 19, 2017 · 1 comment
Open

Setting API other than using Meta? #22

evandavey opened this issue Apr 19, 2017 · 1 comment

Comments

@evandavey
Copy link

My ORM api instance needs to be dynamically declared (to pass in the API url and login via oauth2).

I've used this technique but is there a better way?

api = make_api(api_url)
api.type_registry.register(Design)
Design._options.api = api
@belek
Copy link

belek commented Jun 27, 2018

Same issue. I can't declare an api outside of application context, because I am using flask globals.
Is there any solution of how I can set up api not in Meta class?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants