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 ?
when i am running the code, i got this error.
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()afterdb = SQLAlchemy(app)but still, the error is raised in all threading process
Any solutions for this ?