how to write python server page by using mod_python?

W

wenming_hu

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top