1π
β
Its because of cyclic dependency or circular reference.
b depends on c
c depends on d
d depends on b #which depends on c
Not sure for what purpose you are using. But you do explicit import to that function, and right above where its been used.
Looking at the error you are getting, it might be because of some dependency expected for d is coming from b so if you from b.views import *
, it gets you that dependency. But if you import specific view (my_func
), its missing that dependency.
Some more details you can find on SO answer thread β Django App Dependency Cycle
π€Mutant
Source:stackexchange.com