2๐
I had the some problem. From within sa2 try
from sa2.models import Mo1, Mo2, Mo3
or alternatively
from .models import Mo1, Mo2, Mo3
CATCH: be sure to use the same imports in your forms.py, tests.py or wherever else you import those models. If you update only one of the import it will not work and you will still get the same error.
The problem occurs because of a double import. For more information please see this : The Double Import Trap
Good luck
P.S. no __init__.py
were hurt in the process
๐คDimo
0๐
Remove __init __.py
file in project folder. I have same error when use test in Django and then I remove it, error is disappear.
๐คtnductam
- [Django]-Raise Validation Error In Pre_Save Using Django Rest Framework
- [Django]-Sentry delete issues (logs)
Source:stackexchange.com