Closed tcco closed 7 years ago
Hey, i'm taking a look now. Thanks for the report!
Hey, I am able to reproduce. I will get a fix put together asap.
awesome, barring any unintended consequences I tested with just adding self.app into the init_app and it seemed to work.
yeah, you really dont want to do that. it means that the dynamo object is now tied directly to the app instance, regardless of what the flask app context proxy is. it breaks the app factory magic. While you can get away with it on a small scale, if you start creating multiple apps using the app factory pattern, it can get confused. Im almost done writing tests to catch this in the future.
Ok, i think i got it fixed now.
understood and perfect thanks @jaustinpage
so the branch is working for you?
The branch is working for me thanks! Closing out now
https://pypi.python.org/pypi/flask-dynamo v0.1.2 is up, and includes the fix. Sorry for the bug, and thanks for reporting it!
So I bumped to 0.1.1 and am running into the RuntimeError from _get_app when calling self.connection in init_app. It breaks since current_app and self.app do not return. Current app is not set since this is at load time. My question however is if self.app should be set in init_app?
My config