How to navigate to external url from turbo heating / cherry app?

I am writing a tinyurl clone to find out turbo guides. I am wondering how I redirect my browser to an external website (say www.yahoo.com) from my cherrypy / turbogears app?

I pondered this, but couldn't find much useful information.

0


source to share


1 answer


Just raise the HTTPRedirect exception that lives in the cherrypy namespace. Like this:



raise cherrypy.HTTPRedirect("http://www.yahoo.com")

      

+2


source







All Articles