Configuring virtualenv to run Google appengine samples

In my experiments with Google AppEngine I wanted to configure a virtualenv using python 2.5 for running Google’s samples. Using the existing python install for OSX I was running into a few errors such as:

ImportError: No module named django

and

ImportError: No module named cgi

A bit of Googling turned up this post which details all of the necessary steps. In step 2 the path I used for google_appengine was:

/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine