Created
July 8, 2014 18:29
-
-
Save guilhermecarvalhocarneiro/dacc481874dba0308f88 to your computer and use it in GitHub Desktop.
View
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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