I had problems with the default Apache wsgi-setup from the Flask docs: http://flask.pocoo.org/docs/deploying/mod_wsgi/#creating-a-wsgi-file
I simply changed the python current-working-directory in the wsgi-file to the application directory.
Now Apache is fine.
import sys, os sys.path.insert (0,'/var/www/myapp') os.chdir("/var/www/myapp") from srv import app as application
This snippet by Dorianux can be used freely for anything you like. Consider it public domain.