Sigo sin poder, estoy ahora intentandolo así:
Código python:
Ver originaldef lugarnuevo(request):
if request.method == 'POST':
formulario = LugarNuevo(request.POST)
if formulario.is_valid():
xml = "<PlaceAddRequest>" + "<location>" + "<lat>" + request.POST['latitud'] + \
"</lat>" + "<lng>" + request.POST['longitud'] + "</lng>" + "</location>" + \
"<accuracy>" + "5" + "</accuracy>" + \
"<name>" + request.POST['nombre'] + "</name>" + \
"<type>" + request.POST['tipo'] + "</type>" + \
"<languaje>" + "es" + "</languaje>" + \
"</PlaceAddRequest>"
print xml
req = urllib2.Request('https://maps.googleapis.com/maps/api/place/add/xml?sensor=false&key=miclave')
req.add_header('Content-Type', 'application/xml')
res = urllib2.urlopen(req, xml)
response = res.read()
print response
else:
formulario = LugarNuevo()
return render_to_response('lugarnuevo.html', {'formulario':formulario}, context_instance=RequestContext(request))