December 2007
Beginner to intermediate
310 pages
8h 8m
English
You want to enable Python scripts on your server.
If you have mod_python installed, use the following directives to instruct the server to call it when a Python script is referenced:
AddHandler mod_python .py PythonHandler mod_python.publisher PythonDebug On
This recipe maps all files with .py to the Python script handler. Whenever a request resolves to a file with a .py suffix in the scope of those directives, the server will treat it as a Python script and execute it. You must ensure that the mod_python module is installed.
Installation instructions on the mod_python Web site at http://modpython.org/doc_html
Read now
Unlock full access