GoogleAppEngine
iteye_11088
这个作者很懒,什么都没留下…
展开
-
bug in gae:regex invalid: unbalanced parenthesis
在windows下运行一个示例工程的时候返回错误 [color=red]regex invalid: unbalanced parenthesis[/color] 修正: 找到 google\appengine\tools\dev_appserver.py 文件,到2369行把以下两行代码 [code="python"] regex = os.path.join(re.es...2008-04-09 10:24:59 · 190 阅读 · 0 评论 -
在GAE中读取yaml的例子
在Google App Engine中内置了yaml文件的验证、解析方法,下面演示一个在GAE中读取yaml的例子 待读取的配置文件 config.yaml 内容如下: blog_name: 我们的博客 allow_comment: False masters: - name: Pickerel Yee account: [email protected] - name...2008-04-11 22:53:32 · 83 阅读 · 0 评论 -
在GAE中使用django模板
Google App Engine自带了django框架,开发者可以直接在上面使用django开始web程序,如果你不打算去学django框架,而只是想用它的模板机制,那也是可以的,这里以一个hello, world为例做个演示: 文件:./simple_blog/app.yaml application: simple-blog version: 1 runtime: python ...2008-04-11 23:07:02 · 96 阅读 · 0 评论 -
Restful your google app engine applications
使用示例: [code="python"]#author:[email protected] import wsgiref.handlers from google.appengine.ext import webapp from rest import * class CommentResource(RestResource): def initialize...2008-04-15 01:47:40 · 261 阅读 · 0 评论 -
在GAE中生成全局序列号
gae不能写文件,所以很多操作只能用datastore来实现了。 [code="python"] class Sequence(db.Model): @staticmethod def next(): seq = Sequence() seq.put() id = seq.key().id() ...2008-04-15 02:08:13 · 80 阅读 · 0 评论