Installing PSE
Using mod_python
PSE 4.0 can be used in mod_python, just as older versions. The configuration information for apache is:
PythonHandler pse_handler::mp_handler AddHandler python-program .pt
As a CGI in apache
To install as a CGI, copy pse.cgi to your cgi-bin and make sure mod_actions is enabled in apache:
Action pse_program /cgi-bin/pse.cgi AddHandler pse_program .pt
Other configuration options are possible, as this is only an example.
As a WSGI
This varies from implementation to implementation. A sample WSGI handler is available from the subversion repository, trunk/wsgi_handler.py. Put it on the PythonPath?, or in site-packages, and configure apache like this:
PythonHandler wsgi_handler PythonOption WSGI.Application pse_handler::wsgi_handler AddHandler python-program .pt
Toolserver
Toolserver Framework for Python is a framework for simple building of webservices. It has a WSGI interface that can be configured by installing a file, say pse.py, in ~/.Toolserver/wsgi:
from pse_handler import wsgi_handler registerWSGI('pse', wsgi_handler)
You can then access any PSE template.pt file at http://localhost:4334/WSGI/pse/template.pt (assuming the default configuration).
Other WSGI implementations
Have successfully tested on:
- Sample CGI WSGI gateway implementation presented in PEP 303
- WSGI Reference Implementation
- Toolserver
Try:
