REDIRECT

Jeremiah Dodds jeremiah.dodds at gmail.com
Wed Mar 18 09:22:44 EDT 2009


On Wed, Mar 18, 2009 at 10:54 AM, <gaeasiankom at gmail.com> wrote:

> Hi !
>
> I'm new to Python. I'm having some difficulties to redirect the pages
> using python. Every time when I redirect, the URL changed accordingly.
>
> (Example : from   http://localhost:9999   to
> http://localhost/hello.py?name='J <http://localhost/hello.py?name=%27J>')
>
> What's the Python way of implementing this ? Can anyone help me out on
> this ?
>
>
Depends on what framework you're using.

In CherryPy it would be:

raise cherrypy.HTTPRedirect("/hello?name='J'")

What are you using to build your webpage?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090318/367c36bb/attachment.html>


More information about the Python-list mailing list