Loving Coding & Visual Design
Google Appengine部署常见问题
- 部署后,出现500 Server Error,在后台查看日志:
exceptions.SyntaxError'>: invalid syntax
解决办法: 把Exception as foo改成Exception , foo,因为gae用的版本还是python 2.5.2,而本地测试用的是2.6 - 'NoneType' object has no attribute 'key'
注意检查key是否存在 - type 'exceptions.IndentationError' : unexpected indent
注意每行后面不要有分号,这不是PHP - 本地windows调试推荐用time.clock,gae线上用time.time
判断os.environ的SERVER_HOST 和HTTP_USER_AGENT - AttributeError: 'list' object has no attribute '_populate_entity'
- NameError: global name 'downloaderror' is not defined
- fromstring() argument 1 must be string or read-only buffer, not bool
- ImportError: No module named google3.apphosting.runtime
- BadValueError: Property identifier is not multi-line
class StringProperty(verbose_name=None, multiline=False, ...)
If multiline is False, then the value cannot include linefeed characters.
最 近 文 章
- AGAL笔记 - Mon, 30 Nov -0001 00:00:00 +0000
- Xcode学习 - Mon, 30 Nov -0001 00:00:00 +0000
- git常用命令 - Mon, 30 Nov -0001 00:00:00 +0000
- Apache绑定IPV6地址 - Mon, 30 Nov -0001 00:00:00 +0000
- Node.js快速入门 - Mon, 30 Nov -0001 00:00:00 +0000
- Windows下MongoDB快速入门 - Mon, 30 Nov -0001 00:00:00 +0000
- VPS管理日记 - Mon, 30 Nov -0001 00:00:00 +0000
- 自己单干一年多来的感受 - Mon, 30 Nov -0001 00:00:00 +0000
- ob_clean的failed to delete buffer错误 - Mon, 30 Nov -0001 00:00:00 +0000
- Apache出错:httpd.pid overwritten - Unclean shutdown - Mon, 30 Nov -0001 00:00:00 +0000