I'm a newbie in django and I'm trying to send data (a form) to an external server but so far I haven't succeeded.
This is the simplified version of my view:
def pay(request):
if request.method == 'POST':
form = PaymentForm(post_values)
if form.is_valid():
return render_to_response('http://externalserver/pay/', RequestContext({'form': form}))
but it gives me the following error:
AttributeError at /pay/ 'dict' object has no attribute 'META'
I don't really know if I should/can use render_to_response. Could anyone help me on this?