I have something like this in one of my apps's models.py
:
class Account(AbstractBaseUser):
email = models.EmailField(unique=True)
I want to import a class from another app's views.py as below:
from anotherapp.views import MyClass
The problem is in the first lines of anotherapp.views
file, I imported the Account
class. So when I want to import MyClass
into my models.py
file, this error raises :
ImportError: cannot import name Account