嘿,我在使用 uWSGI 部署我的应用程序时遇到问题:
前端.ini
[uwsgi]
http = *.*.*.*:8181
master = true
#uid = uwsgiuser
#gid = uwsgiuser
processes = 1
harakiri = 60
harakiri-verbose = true
limit-post = 65536
post-buffering = 8192
listen = 128
max-requests = 1000
reload-on-as = 128
reload-on-rss = 96
no-orphans = true
log-slow = true
plugins = python
module = skysoccer.app:main
wsgi-file = /wsgi.py
pythonpath = /eggs/*.egg
pythonpath = /*
pythonpath = *
pythonpath = skysoccer/*
stats= *.*.*.*:8080
这就是我得到的:http: //pastebin.com/KBhMnFv7
然后当我输入 webbrowser: http:// 。.*.*:8181/
在cli中我得到:
TypeError: 'Router' object is not iterable
[pid: 13692|app: 0|req: 1/1] *.*.*.* () {36 vars in 630 bytes} [Wed Jul 10 14:36:31 2013] GET / => generated 0 bytes in 737 msecs (HTTP/1.1 500) 0 headers in 0 bytes (0 switches on core 0)
在代码中我没有变量“路由器”。