带有index.html的Google App Engine中的yaml

dis*_*ive 6 python google-app-engine

我正在建立一个网站,我没有index.py当我输入我的http:// localhost:8080 /时,如何确保index.html出现?

我有yaml

- url: /
  static_files: static/HTML
  upload: static/HTML/index.html
Run Code Online (Sandbox Code Playgroud)

但这似乎不起作用.

Woo*_*ble 11

您的static_files指令需要包含文件的完整路径:

static_files: static/HTML/index.html
Run Code Online (Sandbox Code Playgroud)