'Response' object has no attribute 'get'
def realizarPago(request):
parametros_payu = {} # I use my params here in a dict
url = "https://gateway.payulatam.com/ppp-web-gateway/"
return HttpResponse(requests.post(url, data=parametros_payu).text)
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/19f76a8a-e90e-49ca-abb0-e9c8d1a003b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
"This is impossible to redirect a user to external site with post.urllib and urllib2 can only help to fetch data, but not to redirect a
user."
Anyone knows if that's really the case? I can just do what most people do to integrate the online payment solution, create a form with action to their website and have all my fields as 'hidden'. But I was wondering if there is a way to actually send the data via POST from inside a django view
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8a9ddb36-6565-4003-856f-a9aae6bc0054%40googlegroups.com.