1👍
First of all, dont name your function redirect it is already taken. So here i am using django’s redirect:
One way would be to pass variables in url. Here just a pseudo example…
return redirect('https://test.payu.in/_payment?k=%s&h=%s', % ( key, hash))
0👍
If you faced such problem there’s slight chance that you had over-complicated your design.
This is a restriction of HTTP that POST data cannot go with redirects.
If you really need to redirect in a POST request try it in client side using JavaScript.
- [Answer]-Next upcoming date model object ignoring past dates
- [Answer]-PostData not working in JqGrid
- [Answer]-How to organize and access URLS and TEMPLATES in django
- [Answer]-Issues with uploading images to a carousel
Source:stackexchange.com