Last modified on 23 February 2011, at 14:00

Karrigell/Redirect to a URL

To perform an HTTP redirection to a URL, use the built-in exception HTTP_REDIRECTION :

def index():
    raise HTTP_REDIRECTION(other_url)