< Karrigell

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

def index():
    raise HTTP_REDIRECTION(other_url)
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.