I have a project structured like this:
. └── myapp ├── app.py ├── models │ ├── hello.py │ └── world.py └── requirements.txt
Since hello.py and world.py are in the same folder (aka package), you should import the Hello class in world.py as follow:
from .hello import Hello
As described in this thread: What does a . in an import statement in Python mean?
The . is here to indicate the import from the current package.
.