The title for this question may be confussing.I don't know what title should be given to this problem.
I have two models files ==> models.py in app a and models.py in app b
models.py has class A
in app a
models.py has class B
in app b
Both classes extend django.db.models.Model
i.e. these classes are making database tables
I want to import class A
from models.py from app a which imports class B
from models.py in app b.
I want to say that both classes are using each other.
if I code like this: models.py in app a==>
from b.models import B
models.py in app b ==>
from a.models import A
then I am getting import error that B is not defined.
how can I import both classes in both files?