9👍
✅
In your INSTALLED_APPS
you have included myproject.address
. Therefore you should use the myproject.address
instead of address
for imports.
For example, change,
from address.forms import add_csv_postarea
to
from myproject.address.forms import add_csv_postarea
I’m not sure why your project layout allows you to import the same module as myproject
and myproject.address
. In the early days of Django, it was easy to do this which led to weird bugs, but the default project layout was changed to avoid this way back in Django 1.4.
Source:stackexchange.com