84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
我是参照flask web开发这本书,数据库为sqlite,说到flask-migrate,我在用命令 python hello.py db migrate -m “initial migration”创建数据库迁移脚本时报以下错误:
显示了keyerror:'migrate',这个报错显示是什么意思呢?该如何解决?在网上也没找到这种信息.
欢迎选择我的课程,让我们一起见证您的进步~~
I also encountered a problem like yours. Later I found out that miagrates was instantiated without adding db: migrate = Migrate(app, db)This way it’s ok
I also encountered a problem like yours. Later I found out that miagrates was instantiated without adding db:
migrate = Migrate(app, db)
This way it’s ok