My directory structure
.
|--app
| |--__init__.py
| |--main.py
|
|
|--Dockerfile
|--requirements.txt
I can build this and run it fine. But when I add another *.py file to my project, like this
.
|--app
| |--__init__.py
| |--main.py
| |--handler.py
|
|--Dockerfile
|--requirements.txt
and I try to import a function from handler.py in main.py, like this
# main.py
from handler import someFunc
then main.py gives me a NoModuelFound error for handler.py . Can someone explain how to fix this (and maybe also explain why this error is happening)?