Here is my app structure:
foodo/
setup.py
foodo/
__init__.py
foodo.py
models.py
foodo/foodo/foodo.py
imports classes from the models.py
module:
from foodo.models import User
which throws an ImportError
:
ImportError: No module named models
However, it does work if I use a relative import:
from models import User
And it also works if I put in an pdb breakpoint before the import and continue.
I should be able to use both absolute and relative imports right?