在配置文件uwsgi.ini中加入
enable-threads = true
另外:
当请求的数据过大时,需要修改buffer-size
buffer-size = 32768
静态文件路径
static-map = /static=/var/www/html/kyrem/static
附
[uwsgi]
socket = 127.0.0.1:8001
chdir = /var/www/html/kyrem/
module = kyrem.wsgi
master = true
pidfile=/tmp/kyrem-master.pid
max-requests=5000
processes = 20
daemonize = /var/log/kyrem_uwsgi.log
static-map = /static=/var/www/html/kyrem/static
buffer-size = 32768
chmod-socket = 666
enable-threads = true