ImportError: No module named app ImportError: No module named app flask flask

ImportError: No module named app


From the comments:

There could have been two issues:

  1. 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 terminal export PYTHONPATH=${PYTHONPATH}:/home/peg/myapplication/

  2. __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)