3👍
✅
You probably want to use import Api
– the same way you just have Api
in INSTALLED_APPS
instead of ProductSpyWeb.Api
.
Assuming that you aren’t doing anything strange with your Python path, when you use from ProductSpyWeb import Api
from the Django shell it’s trying to import from ProductSpyProject/ProductSpyWeb/ProductSpyWeb/Api
.
Source:stackexchange.com