【发布时间】:2021-01-09 06:52:31
【问题描述】:
这是错误:
sqlalchemy.exc.NoForeignKeysError
sqlalchemy.exc.NoForeignKeysError: Could not determine join condition between parent/child tables on relationship User.posts - there are no foreign keys linking these tables. Ensure that referencing columns are associated with a ForeignKey or ForeignKeyConstraint, or specify a 'primaryjoin' expression.
请看图片。
【问题讨论】:
-
"这里不知道怎么正确上传问题。" - 请参阅How to Ask。
标签: sqlalchemy