Deploying a python application in OS X Server 2.0.23 (aka Mountain Lion Server)

osx-serverpython

OS X Server 2.0.23 (aka Mountain Lion Server) already has python 2.7.3 and wsgi installed. What is the procedure to install a python web application on that server to run under its own domain? Assume the web application has no other dependencies other than what is already installed.

I have searched the web, but almost all instructions I'm finding refers to manually installing WSGI, python and configuring apache. I'd like to understand how to use the tools provided to deploy the application.

Best Answer

Being more of a programming question, I asked it at Stackoverflow and got an reasonable answer to make it work.