FANDOM


App.yaml

App.yaml Wordpad Screenshot

App.yaml is app engine's way of organizing urls. It tells App Engine what blah.appspot.com/blah is mapped to and whether blah.appspot.com/blah.html

is a html file.

HeaderEdit

The header looks like this:


application: blah

version: 1

runtime: python

api_version: 1


Application is the name of the app that you registered. In this case it would be blah.appspot.com. Version is the version number is this case it is one. The last two you don't need to worry about if you're making an app.



HandlersEdit

There are two kinds of handlers.

  • Static Files and Directories
  • Scripts

Static FilesEdit

Static files and Directories allow you to put html and jpg files in your apps. One example of this is jbillsparch

Use:

handlers:
- url: '/filename.html'
  static_files: 'filename.html'
- url: '/foldername'  
  static_dir: 'foldername'


ScriptsEdit

Scripts are the urls that python files are mapped to.

Use:

handlers:
- url: /.*
  script: index.py