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.configfrom_object(‘config.DevelopmentConfig’)

Then creating a base date object:

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *