Skip to content

Init_app doesn't set self.app = app #22

Description

@springrid

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 the init_app method?

For example in create_app()::

redis_object.init_app(app)
print(redis_object.get_app())

last row will throw RuntimeError: Flask application not registered on Redis instance and no applcation bound to current context.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions