Néstor Chacón Manzano
nchacon at caton.es
Thu Nov 9 05:19:20 EST 2006
Hello, i' am newer in mod_python. I try to probe this example: <html> <head> <title>Prueba mod_python</title> </head> <body> <form method='POST' action='python/getMonth'> <p> <hr> <br /> Selecciona el mes: <br /> <select name='month'> <option value='1'>Enero</option> <option value='2'>Febrero</option> <option value='3'>Marzo</option> (...) </select> </p> <br /> <input type='submit' value="Muestra el mes"> </form> </body> </html> In /var/www/python/ i have the script getMonth.py import calendar from mod_python import apache def getMonth(req,month): req.write(calendar.month(2006,int(month),2,3)) My /etc/apache/apache2.conf have this entry: <Directory /var/www/python> SetHandler mod_python PythonHandler mod_python.publisher PythonDebug On </Directory> And the permisions of the files and directory are ugo+rx but when i probe this i get "The requested URL /python/GetMonth.py was not found on this server." Anyone idea? Thanks.
|