1👍
✅
If you are using javascript libraries to do the post, HttpResponseRedirect
would not work.
Alternatively, you can send back the success message (or the URL) as a response and then in the success handler (io.success) either alert
the success message, or to redirect
to the desired page.
Source:stackexchange.com