Nicolas Lehuen
nicolas.lehuen at gmail.com
Sat Jun 25 10:12:42 EDT 2005
Hi, You should give your function the name 'index', not 'main'. Regards, Nicolas 2005/6/25, GNULife <gnulife at gmail.com>: > I use mod_python.publisher,my apache's setting as is: > > DirectoryIndex index.html index.html.var index.htm index.php index.py > > <Directory E:/Program/website> > SetHandler mod_python > PythonHandler mod_python.publisher > PythonDebug On" > </Directory> > > And I create a file named: E:\Program\website\index.py > > import os > > def main(): > return "Hello" > > Now I can get "Hello" from http://localhost/main , but I want to get > "Hello" from http://localhost/ ,how to do it? > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python >
|