开发者

How to set a default page in a static_dir in Google AppEngine

In my app.yaml file I have:

handlers:
- url: /resume
  static_dir: resume

Inside my /resume folder I have an index.htm file. I want this file to show when I navigate to http://myapp/resume -- how do I tell GAE that index.htm should be the default p开发者_StackOverflow社区age in this directory?


Try to add this to your app.yaml after your /resume static_dir declaration:

- url: /resume
  static_files: resume/index.htm
  upload: resume/index.htm
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜