Skip to content

RuntimeError: Working outside of application context. #21

@OmarMohammed88

Description

@OmarMohammed88

when i am running the code, i got this error.

RuntimeError: Working outside of application context.

This typically means that you attempted to use functionality that needed
the current application. To solve this, set up an application context
with app.app_context(). See the documentation for more information.

Notice that i had to change the sqlalchemy loading to the following code
app.config["SQLALCHEMY_DATABASE_URI"] = "postgresql:///quokka"

and i tried to add app.app_context() after db = SQLAlchemy(app)
but still, the error is raised in all threading process

Any solutions for this ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions