411 REFERENCE · Wikibooks
Karrigell/Redirect to a URL
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
To perform an HTTP redirection to a URL, use the built-in exception HTTP_REDIRECTION :
def index():
raise HTTP_REDIRECTION(other_url)