配置 uWSGI:
(venv)$ pip install uwsgi # 安装 uWSGI
Running with wsgi.py
file(wsgi.py
is the file name with app. callable):
(venv)$ uwsgi --socket 127.0.0.1:8080 --protocol=http -w wsgi
Runing under virtualenv, -H
to set virtualenv to python path.