Advertisement
Guest User

Untitled

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