解决GAE SDK1.0 中静态文件配置static_dir错误问题
May 6th, 2008
在Google App Engine SDK1.0 中,如果使用这样的URL配置
- url: /static
static_dir: static
将会报错,并且网站无法启动。好在SDK1.01已经解决了这个问题。如果你正遇到这个问题那么赶紧下载 Google App Engine SDK 的最新版本吧。
如果你暂时还不想更新SDK,可以先将配置修改成这样,效果是一样的:
- url: /static/(.*)
static_files: static/\1
upload: static/(.*)
非常感谢,让我搞了好久,汗~~
这是更改那个文件啊?我也出现以下错误提示。 D:\program files\Google\google_appengine>dev_appserver.py helloworld ERROR 2008-06-06 14:46:13,844 dev_appserver_main.py] Fatal error when loading application configuration: Invalid object: Unknown url handler type. in "helloworld\app.yaml", line 7, column 1