开发者

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

开发者 https://www.devze.com 2023-01-23 16:06 出处:网络
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

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

精彩评论

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