ImportError: No module named app
From the comments:
There could have been two issues:
The path to
myapplication/
hadn't been added to the$PYTHONPATH
environment variable (more info here and here)Let's say the code lives under/home/peg/myapplication/
. You need to type in your terminalexport PYTHONPATH=${PYTHONPATH}:/home/peg/myapplication/
__init__.py
could have had a typo. There shouldn't be whitespaces between the underscores __ and the init.py chunk (__init__.py
is good,__ init __.py
is not)