4👍
make sure your directories look like this.
-- osps\
|-- app1\
| `-- ...
|-- __init__.py <- makes this a module
|-- manage.py
|-- settings.py
`-- urls.py
worst comes to worst, put this line at the top of settings.py:
import os.path.dirname as d, sys.path as p; p.insert(0,d(d(__file__)))
this will put your project’s parent folder at the top of the import chain.
better though is to remove all references to your toplevel project. It should not be part of any references between apps anyway. This is best practice for pluggable/reusable apps.
in which case,
import os.path.dirname as _d, sys.path as _p; _p.insert(0,_d(__file__))
Source:stackexchange.com