I would like to redirect my user to another domain. For example: my site is http://www.mysite.com/ and I would like to redirect them to http://www.google.com/.
I want the redirect to come after a form submission. Is this possible in the pyramid web framework?
Or is the best route to use an AJAX post request to the server and then redirect using javascript?
Thank you.
Return HTTPFound with the location you want after your successful form submission.
This will return a status code 302 with a
Locationheader set tohttp://example.com.