Google app engine dev_server.py:当更改代码的状态始终为200且正文为空时,第一个请求
我在app.yaml中使用这个Google app engine dev_server.py:当更改代码的状态始终为200且正文为空时,第一个请求,google-app-engine,tornado,Google App Engine,Tornado,我在app.yaml中使用这个 - url: /.* script: server.application 何时使用dev服务器 dev_appserver.py——使用_sqlite-a 0.0.0.0-p 8842/home/bitcoin/42btc 第一次,是一个空白的页面 第二次,一切都是对的 我用龙卷风 application = tornado.wsgi.WSGIApplication( [ (r"/(.*)", ViewIndex),
- url: /.*
script: server.application
何时使用dev服务器
dev_appserver.py——使用_sqlite-a 0.0.0.0-p 8842/home/bitcoin/42btc
第一次,是一个空白的页面
第二次,一切都是对的
我用龙卷风
application = tornado.wsgi.WSGIApplication(
[
(r"/(.*)", ViewIndex),
],
)
更改代码时,first requests将在shell中打印响应,状态为200,正文为空
INFO 2013-03-04 02:26:57,679 dev_appserver_multiprocess.py:658] Admin console is available at: http://0.0.0.0:8942/_ah/admin
INFO 2013-03-04 02:26:58,487 py_zipimport.py:148] zipimporter('/home/bitcoin/42btc/misc/virtualenv.zip', '')
Status: 200
Content-Length: 4792
Etag: "17302e0828d268f8d65efab7c1edb483d0ffa61d"
Content-Type: text/html; charset=UTF-8
Server: TornadoServer/2.4.1
Set-Cookie: _xsrf=cf8c38780922411a859f197e686910a4; Path=/
<!DOCTYPE html><meta charset="utf-8"><script src="/js/init.js"></script><link rel="stylesheet" href="/css/init.css" type="text/css"><title>42btc.com</title><body>
...
INFO 2013-03-04 02:26:57679 dev_appserver_multiprocess.py:658]管理控制台位于:http://0.0.0.0:8942/_ah/admin
信息2013-03-04 02:26:58487 py_zipimport.py:148]zipimporter('/home/bitcoin/42btc/misc/virtualenv.zip','')
现状:200
内容长度:4792
Etag:“17302e0828d268f8d65efab7c1edb483d0ffa61d”
内容类型:text/html;字符集=UTF-8
服务器:TornadoServer/2.4.1
设置Cookie:_xsrf=cf8c38780922411a859f197e686910a4;路径=/
42btc.com
...
第二个请求正常…在第一个页面加载时,stdout可能没有正确重定向 我在我的dev_appserver版本中没有看到这一点。它可能是tornado或您正在使用的其他库