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 = "汤姆猫"
    cat.c_fun = "被老鼠抓"
    cat.save()
    return HttpResponse("成功创建小猫")
Example #4
0
def add_dog(request):
    dog = Cat()
    dog.a_name = 'Tom'
    dog.save()
    return HttpResponse('create cat successfully %d' % dog.id)
Example #5
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)