Hi,
I am quite new to sqlalchemy. I am trying to implement a many-to-one
relationship between classes in different modules. I was able to get this to
work when classes are inside the same module however when I put the classes in
different modules I get import errors. I made sure I used strings
in Python, this is called a circular module import:
lattice_definition.py:
from Irmis.model_definition import model
model_definition.py:
from Irmis.lattice_definition import Base
from Irmis.lattice_definition import lattice
both modules are dependent on each other:
lattice_definition ---