[Tutor] Http Redirect

Peter Romfeld peter.romfeld.hk at gmail.com
Fri Jun 27 11:24:01 CEST 2014


Hi,

I am not using django, i will use:

from urllib2 import HTTPRedirectHandler
HTTPRedirectHandler.http_error_302(url)

i did not test it yet

Cheers
> hi,
>
> i want to make a http-redirect with falconframework. just put it into
> response HTML header?
>
> with cherrypy i had 'raise cherrypy.HTTPRedirect(url)
>
> i know that i can do that also with HTML:
> <head>
>     <meta http-equiv="refresh" content="0; url=http://example.com/" />
> </head>
>    
> i think with django you can do the redirect directly in urls.
>
> with falconframework i have similiar urls

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140627/c8ef64d1/attachment.html>


More information about the Tutor mailing list