Skip to content

Pyramid on Google’s App Engine (the easy way using buildout)

Notifications You must be signed in to change notification settings

koansys/pyramid-gae-tutorial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pyramid on Google’s App Engine (the easy way using buildout)

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.

Usage

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.

Additional information

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 to pkg_resources.DefaultProvider in ./app/main.py.

TODO:

  • 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.

Source Code

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.

Contributors

About

Pyramid on Google’s App Engine (the easy way using buildout)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.1%
  • CSS 3.9%