[mod_python] How declared correctly the way in the pg.html to the apache server can resolv the script python correctly

Graham Dumpleton graham.dumpleton at gmail.com
Mon Nov 19 16:18:59 EST 2007


If that is the case, the action should be what I said originally:

  action="python/testepython.py/form1"

If that doesn't work, try:

  action="http://edgardalvescosta.no-ip.org/python/testepython.py/form1"

If that still doesn't work, then test that the full URL works from the
browser by using:

  http://edgardalvescosta.no-ip.org/python/testepython.py/form1?a=b&c=d

Where the part after '?' equates to the form arguments that the handler accepts.

If it doesn't work when you put this address direct into the browser,
then it isn't going to work from the HTML form.

Graham

On 19/11/2007, EdgardCosta <edgardalvescosta at gmail.com> wrote:
> Graham.
>
> Sorry agaim, if i don't understand your question
>
> what URL address did you use to access it from your web browser
>
> I'm using this url: http://edgardalvescosta.no-ip.org/testepython.html
> and the the response should be
> http://edgardalvescosta.no-ip.org/python/testepython.py/form1
>
> Edgard
>
> Em Seg, 2007-11-19 às 22:03 +1100, Graham Dumpleton escreveu:
> > On 19/11/2007, EdgardCosta <edgardalvescosta at gmail.com> wrote:
> > > Graham,
> > >
> > > First sorry, I simply forgot the address that i had replied.
> > >
> > > Your questions:
> > > Your config problem, you haven't explained enough about what you
> > > have actually used in the configuration
> > >
> > > My apache2 configuration to run mod_python is the simple one. This is in
> > > the oficial tutorial.
> > >
> > >  <Directory /net/www/python/>
> > >         SetHandler mod_python
> > >         PythonHandler mod_python.publisher
> > >         PythonDebug On
> > >
> > > Have you actually got a publisher handler working that doesn't involve
> > > a form as a first step?]
> > >
> > > Yes. A few.
> > >
> > >
> > > What URL did you use for that?
> > >
> > > I'm using a no-ip dns. It is to my local network only.
> >
> > But what URL address did you use to access it from your web browser.
> >
> > Your problem is mostly due incorrect relative URL in the form action.
> > Thus knowing what the URL is for the static HTML page or publisher
> > handler that you are using to generate the page is important. This is
> > why I am asking.
> >
> > Graham
> >
> > > Where in the file system is your HTML form file kept?
> > >
> > > I built a different way to this. The default is /var/www/ and I put it
> > > in /net/www
> > >
> > > Where in the file system is your publisher code file kept?
> > >
> > > It is in /net/www/python
> > >
> > > What is the Apache configuration snippet you use to configure
> > > mod_python to use publisher?
> > >
> > > The configuration is the the that a wrote in above this message.
> > >
> > > Thanks for all
> --
> Edgard Costa
>
> edgardalvescosta at gmail.com
>
> Viste: www.prontuarioeltronico.odo.br
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>



More information about the Mod_python mailing list