[mod_python] publisher the requested URL /python/GetMonth.py was not found on this server.

Terry Macdonald terry.macdonald at dsl.pipex.com
Thu Nov 9 05:40:50 EST 2006


Néstor Chacón Manzano wrote:
> 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.
>
>
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>   
otherwise try putting an alias in the apache conf of

Alias /python  /var/www/python


More information about the Mod_python mailing list