See anything wrong with my attempt to get Flask running? (mod_wsgi + virtualenv) See anything wrong with my attempt to get Flask running? (mod_wsgi + virtualenv) flask flask

See anything wrong with my attempt to get Flask running? (mod_wsgi + virtualenv)


Obviously, it cannot find your "myapp" package. You should add it to the path in your myapp.wsgi file like this:

import syssys.path.append(DIRECTORY_WHERE_YOUR_PACKAGE_IS_LOCATED)from myapp import app

Also, if myapp module is a package, you should put and empty __init__.py file into its directory.


Edit line sys.path.append, it needs to be a string.

import syssys.path.append('directory/where/package/is/located')

Notice the single quotes.