how to write python server page by using mod_python?

wenming_hu wenming_hu2002 at hotmail.com
Thu Mar 4 21:28:46 EST 2004


i want to set the default page of a site, the same as writing asp or jsp.

who can tell me how to realize that?

er, i have a another question, i want to put my site in a separate
directory, (for example, e:\psp_site), i put the following in apache's
config:

<Directory "f:/psp_site/">

    AddHandler python_program .py
    PythonHandler main

    PythonAutoReload On
    PythonDebug On

</Directory>

but to my disappointed, it doesn't work! :-(

who can help me?





More information about the Python-list mailing list