Sae能支持其他web框架么?

25 views
Skip to first unread message

缺睡的猪

unread,
Nov 6, 2014, 5:45:00 AM11/6/14
to sae-p...@googlegroups.com
比如这个
也是基于wsgi的python框架。

陈峰

unread,
Nov 6, 2014, 6:00:04 AM11/6/14
to sae-p...@googlegroups.com
只要支持wsgi应该都可以直接用吧。

2014-11-06 18:45 GMT+08:00 缺睡的猪 <firm...@gmail.com>:
比如这个
也是基于wsgi的python框架。

--
邮件来自: SAE Python 邮件列表
发言: sae-p...@googlegroups.com
退订: sae-python+...@googlegroups.com (向此发空信即退!)

laker

unread,
Nov 10, 2014, 9:55:45 PM11/10/14
to sae-p...@googlegroups.com
这个框架用的是“gevent”模块下面的WSGI
如:
from gevent.pywsgi import WSGIServer

WSGIServer((host,port), app, log=None, **kwargs)

但sae用的是simple_wsgi

from werkzeug.serving import run_simple

run_simple(options.host, options.port, application,
                    use_reloader = True,
                    use_debugger = True,
                    extra_files = files,
                    static_files = statics, threaded=True)

有法子让sae用gevent的wsgi么?

laker

unread,
Nov 10, 2014, 9:59:39 PM11/10/14
to sae-p...@googlegroups.com
这个框架用的是“gevent”模块下面的WSGI
如:
from gevent.pywsgi import WSGIServer

WSGIServer((host,port), app, log=None, **kwargs)

但sae用的是werkzeug下的wsgi

from werkzeug.serving import run_simple

run_simple(options.host, options.port, application,
                    use_reloader = True,
                    use_debugger = True,
                    extra_files = files,
                    static_files = statics, threaded=True)

有法子让sae用gevent的wsgi么?
2014-11-06 19:00 GMT+08:00 陈峰 <chanf...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages