I have a problem with SQL Alchemy, while trying to create a database, i get:
\"sqlalchemy.exc.NoReferencedTableError: Foreign key associated with column \'estate
In case of Declarative, I solved this problem by simply importing the class that was 'could not be found'.
By adding the following line to my parent
table solved my problem. In case of Declarative:
children = relationship("Child")
Otherwise: SQLAlchemy - Classic Mapper
Also try to have a look in here (SO) too, might help.
The solution is to replace the strings with actual columns:
Column('person_id', Integer, ForeignKey(tbl_person.c.id), primary_key=True)