Neither SQLALCHEMY_DATABASE_URI nor SQLALCHEMY_BINDS is set.
Error solution Neither SQLALCHEMY_DATABASE_URI nor SQLALCHEMY_BINDS is set.
The cause of the error is in the wrong order. Configuration initialization must be above the creation of the database object.
Those. first config for SQLAlchemy:
app.config…from_object(‘config.DevelopmentConfig’)
Then creating a base date object: