def testReceiveJSON(filename): f = open(filename,'r') text = f.read() logJSON(text)
def receivePostJSON(request): logJSON(request.POST['text']) return HttpResponse("your concerns will be noted in the captain's log :)")