Google AppEngine上的静态根页面

Mor*_*ten 2 python google-app-engine

我正在尝试为google appengine应用程序设置静态登录页面.但是,当我访问网站的根目录时,我得到404.它在本地工作正常只是在我部署它时不起作用.app.html页面正常工作,因此它的登录页面无效.

这是来自app.yaml的东西

handlers:
- url: /rest/.*
  script: main.py
  login: required

- url: /js
  static_dir: static/js

- url: /
  static_files: static\index.html
  upload: static\index.html

- url: /app.html
  static_files: static/app.html
  upload: static/app.html
  login: required

- url: /.*
  script: main.py
Run Code Online (Sandbox Code Playgroud)

ber*_*nie 9

将这些反斜杠更改为正斜杠.
应该:

- url: /
  static_files: static/index.html
  upload: static/index.html

反斜杠是转义字符.
所以你指定了一个不存在的路径.