環境は以下。 ubuntu 10.04 amd64 apache2 2.2.14 mod_wsgi 3.3 python 2.7.2 (pythonbrew) flaskでやってみます。 前準備 まずpythonbrewでvirtualenvで環境をつくる。 $ pybrew venv create -p 2.7.2 --no-site-packages test $ pybrew venv use -p 2.7.2 test (test)$ pip install flask適当にアプリを置く。 ~/app/test/app.wsgi import sys, os sys.path.insert(0, os.path.abspath(os.path.dirname(__file__))) from main import app as application ~/app/test/mai