def post_sentence(request, data, user): #TODO: figure out clickjacking protection print data s = Sentence() u = User.objects.get(id = user) print u return s.post_sentence(data, u)
def random_sentence(request): s = Sentence() return HttpResponse(s.get_random_sentence())
def markov_sentence(request): s = Sentence() return HttpResponse(s.get_markov_sentence())