Tuesday, June 2, 2009

Installing PIL

Sooner or later you may need the PIL library for image manipulation. If you're using OS X, you will see it's not 100% obvious how to install - here is the solution.

For me, PYTHONPATH haven't worked, but this comment helped me out.

Also don't forget to restart AppEngine Launcher after PIL installed.


Monday, June 1, 2009

How to make a simple 404 page in App Engine

In app.yaml you have to define a 'catch all' mask at the very end of the file:

# --- 404 page ---
- url: /.*
script: 404.py

Of course you can use a static file as well.