示例#1
0
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)
示例#2
0
def random_sentence(request):
    s = Sentence()
    return HttpResponse(s.get_random_sentence())
示例#3
0
def markov_sentence(request):
    s = Sentence()
    return HttpResponse(s.get_markov_sentence())