Python 通过Nginx服务烧瓶的问题
我无法通过nginx提供烧瓶。我查看了日志,上面写着:Python 通过Nginx服务烧瓶的问题,python,nginx,flask,webserver,Python,Nginx,Flask,Webserver,我无法通过nginx提供烧瓶。我查看了日志,上面写着: Traceback (most recent call last): File "/var/www/site.me/server.py", line 1, in <module> from flask import Flask ImportError: No module named flask Sun Jun 8 09:35:30 2014 - unable to load app 0 (mountpoint='
Traceback (most recent call last):
File "/var/www/site.me/server.py", line 1, in <module>
from flask import Flask
ImportError: No module named flask
Sun Jun 8 09:35:30 2014 - unable to load app 0 (mountpoint='') (callable not found or import error)
Sun Jun 8 09:35:30 2014 - *** no app loaded. going in full dynamic mode ***
Sun Jun 8 09:35:30 2014 - *** uWSGI is running in multiple interpreter mode ***
Sun Jun 8 09:35:30 2014 - spawned uWSGI master process (pid: 2176)
Sun Jun 8 09:35:30 2014 - spawned uWSGI worker 1 (pid: 2180, cores: 1)
Sun Jun 8 09:35:30 2014 - spawned uWSGI worker 2 (pid: 2181, cores: 1)
这是我的uwsgi配置
[uwsgi]
vhost = true
socket = /tmp/site.sock
venv = /var/www/site.sock/.env
chdir = /var/www/site.me/
module = server
callable = app
no-site= true
非常感谢您的帮助。您确定
venv
是正确的吗?是的,我非常确定它是正确的。
[uwsgi]
vhost = true
socket = /tmp/site.sock
venv = /var/www/site.sock/.env
chdir = /var/www/site.me/
module = server
callable = app
no-site= true