Google App Engine Serving Static Files

Unlike traditional web hosting environment, Google App Engine does not serve files directly out of your application source directory unless configured to do so. We name our template file index.html, but it does not automatically make the file available at /index.html. But there are many cases where you want to serve static files directly to the web browser. You can tell App Engine to serve specific files directly without you having to code your own handler by editing app.yaml:

handlers:
    -url: /stylesheets
     static_dir: stylesheets
    -url: /.*
     script: accessiblebrain.py
page_revision: 0, last_edited: 1217720044|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License