Skip to content

Instantly share code, notes, and snippets.

@MariuszWisniewski
Created February 5, 2016 22:59
Show Gist options
  • Save MariuszWisniewski/da07858fb809ec12321d to your computer and use it in GitHub Desktop.
Save MariuszWisniewski/da07858fb809ec12321d to your computer and use it in GitHub Desktop.
content = "<html>\
<head>\
<meta http-equiv=\"Refresh\" content=\"0; url=https://www.syncano.io/\" />\
</head>\
<body>\
<p>Please follow <a href=\"https://www.syncano.io/\">this link</a>.</p>\
</body>\
</html>"
redirectResponse = HttpResponse(status_code=302, content=content, content_type='text/html');
set_response(redirectResponse);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment