boodebr sandbox App Engine samples and tutorials from boodebr.org


Recently Edited
StaticContent edit
frank, 17 July 2008 (created 19 April 2008)
To get started, I'm going to add some static content.

On my laptop, my development directory is c:\frank\src\gapp_boodebr. I'll refer to this as the toplevel folder for brevity. Under that directory is a folder wiki that holds the wiki content you are viewing now.

In the toplevel folder, I created app.yaml:
app.yaml
application: boodebr
version: 1
runtime: python
api_version: 1

handlers:
- url: /wiki
  static_dir: wiki
The key here is the handlers section where I tell the app engine to treat wiki\ as static content. That's it - no .py files are required.

To test my app locally, I run:
cd c:\frank\src\gapp_boodebr
dev_appserver.py .
Viewing the results at http://127.0.0.1:8080

When happy with the results, I upload to App Engine:
appcfg.py update .


And voila, there it is: http://boodebr.appspot.com/wiki/index.html

blog comments powered by Disqus