AssertionError: The sqlalchemy extension was not registered to the current application. Please make sure to call init_app() first.
今天在进行数据迁移时,执行到 python migrate.py db migrate 时候 报错
经过反复试验,在配置上加上
db.init_app(app)
执行成功!

AssertionError: The sqlalchemy extension was not registered to the current application. Please make sure to call init_app() first.
今天在进行数据迁移时,执行到 python migrate.py db migrate 时候 报错
经过反复试验,在配置上加上
db.init_app(app)
执行成功!
上一篇 LeetCode105:从前序与中序遍历序列构造二叉树
下一篇 To use bfloat16 with native amp you must install torch greater or equal to 1.10.