views:

40

answers:

1

Hey all,

In Java, the web.xml might contain some <welcome-file> elements. I am trying to do something equivalent in python with no luck.

application: wk
version: 1
runtime: python
api_version: 1

handlers:
- url: /
  static_dir: docs

welcome_files:
- index.html

Any thoughts? I get an error that "welcome_files" is not understood.

+3  A: 

One possibility:

application: wk
version: 1
runtime: python
api_version: 1

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

- url: /.*
  static_files: static
  upload: static
Robert Kluin
This is correct. 'welcome_file' only exists in Java because the Java config doesn't support this.
Nick Johnson