[google-appengine] How to use ndb key with integer_id?

2013-03-03 Thread
I see the document https://developers.google.com/appengine/docs/python/ndb/keyclass#Key_integer_id Returns the integer id in the last (kind, id) pair, or None if the key has an string id or is incomplete. see I think the id of a key can be a int ; so I write r = ndb.Key(UserSession, int(

Re: [google-appengine] First request on a new instance always has a status of 200 and an empty body

2013-02-26 Thread
I have the same problem I use this in app.yaml - url: /.* script: server.application when use dev server dev_appserver.py --use_sqlite -a 0.0.0.0 -p 8842 /home/bitcoin/42btc the first time , is a empty page the second time , all things are right I use tornado application = tornado.wsgi.W