[Solved] flask db init Error: KeyError: ‘migrate‘

Problem description:

when migrating the database using flash DB, an error report: KeyError: ‘migrate’

Solution:

When initializing the migrate object, there is no migrate function or the parameters are incorrect


from flask_migrate import  Migrate
migrate =Migrate(app,db)

Read More: