Skip to content

Instantly share code, notes, and snippets.

@guilhermecarvalhocarneiro
Created July 8, 2014 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guilhermecarvalhocarneiro/dacc481874dba0308f88 to your computer and use it in GitHub Desktop.
Save guilhermecarvalhocarneiro/dacc481874dba0308f88 to your computer and use it in GitHub Desktop.
View
def send_mail(request):
u"""Method for send contact"""
return_response = {}
try:
print request.POST, request.GET
return_response['resposta'] = request.POST
except Exception, e:
return_response['resposta'] = e
finally:
return HttpResponse(json.dumps(return_response),
mimetype="application/json")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment