Example #1
0
def add_cat(request):

    cat = Cat()
    cat.a_name = 'Tom'
    cat.c_eat = 'fish'
    cat.save()
    return HttpResponse('Cat create success %d' % cat.id)
Example #2
0
def add_cat(request):

    cat = Cat()

    cat.a_name = "cat_name"
    cat.c_eat = "Fish"
    cat.save()
    return HttpResponse("Cat创建成功 %d" %cat.id)
Example #3
0
def add_cat(request):
    cat = Cat()
    cat.a_name = 'Tom'
    cat.c_eat = 'Fish'
    cat.save()
    return HttpResponse('create cat successfully %d' % cat.id)