Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32
- Type "help", "copyright", "credits" or "license" for more information.
- >>> from domdit import db
- >>> from domdit.models import Blog, PostTag, tags
- >>> db.create_all()
- >>> x = Blog.query.first
- .....
- sqlalchemy.exc.NoForeignKeysError: Could not determine join condition between parent/child tables on relationship Blog.tags -
- there are no foreign keys linking these tables via secondary table 'tags'. Ensure that referencing columns are associated wit
- h a ForeignKey or ForeignKeyConstraint, or specify 'primaryjoin' and 'secondaryjoin' expressions.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement