INNER CODE UNIT · Python
get_redirect_page
ab77/netflix-proxy · auth/auth.py:246
def get_redirect_page():
content = web.form.Form()
content.title = 'Redirect to Google'
content.redirect_url = 'http://google.com/'
return content
# Set a custom 404 not found error message
def notfound():
web.ctx.status = '404 Not Found'
return web.notfound(str(render.__404()))
# Set a custom internal error message
def internalerror():
web.ctx.status = '500 Internal Server Error'
return web.internalerror(str(render.__500()))