Python : Solving This Cyclic Import Conundrum
I am running into an import conundrum. After adding a new import I am getting the following error from studentApp.models import modelStudent File abc, line 6, in
Solution 1:
The circular dependency is that studentApp/models.py
imports mainApp.models
and mainApp/models.py
imports studentApp.models
. One solution is to move modelPatient
into it's own module and then import it into mainApp/models.py
and studentApp/models.py
.
Post a Comment for "Python : Solving This Cyclic Import Conundrum"