This is an example that show how to use CherryPy with OpenShift and the mod_wsgi components.
To use this examle create a Python Application following the online examples or with:
rhc create-app -a cherrypy -t python-2.7
Following this you can pull in the code from these examples by using:
git remote add quickstart https://github.com/penguinforge/openshift-cherrypy.git
git fetch quickstart
git checkout master; git merge --strategy=recursive -X theirs quickstart/master
git push
This example works like most other WSGI applicaion examples by defining CherryPy as a dependency and then defining the mod_wsgi application
The OpenShift python
cartridge documentation can be found here.
Credit: The magic of this example is provided by tools.cherrypy