在运行migrate的时候遭遇报错,错误信息是:“sqlalchemy.exc.NoReferencedTableError: Foreign key associated with column 'todos.list_id' could not find table 'todolist' with which to generate a foreign key to target column 'id'”

【已解决】sqlalchemy.exc.NoReferencedTableError: Foreign key associated with column todos.list_id could

参考了网友的解答:https://blog.csdn.net/qq_38217864/article/details/104562106 得知应当修改文件名。

即:

【已解决】sqlalchemy.exc.NoReferencedTableError: Foreign key associated with column todos.list_id could

问题得以解决

相关文章: