我收到一个错误:ImportError: No module named site根据我的 uWSGI 日志。
test_proj.ini:
[uwsgi]
chdir = /home/%n/app
module = %n.wsgi
home = /home/%n/app/venv
master = true
processes = 10
chmod-socket = 664
socket = /home/%n/uwsgi/socket
daemonize = /home/%n/uwsgi/log
pidfile = /home/%n/uwsgi/pid
Run Code Online (Sandbox Code Playgroud)
nginx:
server {
listen 8888;
server_name 192.168.88.187;
# Set up django static file serving
location /static {
alias /home/test_proj/app/static/;
}
# pass all non-static request to uWSGI
location / {
uwsgi_pass unix:///home/test_proj/uwsgi/socket;
include uwsgi_params;
}
}
Run Code Online (Sandbox Code Playgroud)
点冻结:
Django==1.7.1
django-braces==1.4.0
django-cors-headers==0.13
django-dynamic-settings==1.1.0
django-oauth-toolkit==0.7.2 …Run Code Online (Sandbox Code Playgroud)