Open springrid opened 5 years ago
Try this.
redis_object.init_app(app)
with app.app_context():
print(redis_object.get_app())
It's been a while.
I'll take a look on the original issue and if only way for redis_object.get_app()
to be called within app context, I'll point this in documentation.
Thanks for waiting on this.
Awesome plugin! However, I'm using the app factory pattern and I'm struggling to get it working. It seems to me that maybe
self.app = app
should be added in theinit_app
method?For example in create_app()::
last row will throw
RuntimeError: Flask application not registered on Redis instance and no applcation bound to current context
.