A example Pyramid application running in a local appengine development environment.
The zc.buildout based installation uses the appengine buildout integration collective.recipe.appengine.
This example was a based on some older pyramid on appengine tutorial and was developed further, because I had some issues to get it running. I cleaned it slightly up, such as moving the app to the app subdir and now it just works.
Preconditions:
- virtual-env >= 1.9
Follow the white rabbit:
git clone git://github.com/jensens/pyramid-gae-tutorial.git cd pyramid-gae-tutorial /path/to/virtualenv-2.7 --no-setuptools --no-site-packages --clear . ./bin/python2.7 bootstrap.py ./bin/buildout
Run tests:
./bin/testpy -m example_app
Run apps local development server:
./bin/dev_appserver
And in your browser just point to http://localhost:8080
. For
admin-interface go to http://localhost:9000
.
pgk_resources
./app/pkg_resources.py
was copied from distribute and you may want to keep it uptodate. To make it work I had to register the appengine loader topkg_resources.DefaultProvider
in./app/main.py
.
- Check if
pkg_resources
is still needed after reunion of setuptools and distribute. - Check how we can work with pycrypto and Pillow in a sane way in this environment.
The sources are in a GIT DVCS with its main branches at github.
I'd be happy to see many forks and pull-requests to make it even better.
- Jens W. Klein <[email protected]>