from django.shortcuts import render

from django.http import HttpResponse
# Create your views here.
def book(request):
    return HttpResponse("图书首页")

def book_detail(request,book_id,category_id):
    text = "你获取的图书id是：%s,你的图书分类id是：%s" % (book_id,category_id)
    return HttpResponse(text)

def author_detail(request):
    author_id = request.GET.get['id']
    text = '作者的id是:%s' % author_id
    return HttpResponse(text)

def publish_detail(request,publish_id):
    text = '出版社的id是：%s'% publish_id
    return HttpResponse(text)
from django.shortcuts import render

from django.http import HttpResponse
# Create your views here.
def book(request):
    return HttpResponse("图书首页")

def book_detail(request,book_id,category_id):
    text = "你获取的图书id是：%s,你的图书分类id是：%s" % (book_id,category_id)
    return HttpResponse(text)

def author_detail(request):
    author_id = request.GET.get['id']
    text = '作者的id是:%s' % author_id
    return HttpResponse(text)

def publish_detail(request,publish_id):
    text = '出版社的id是：%s'% publish_id
    return HttpResponse(text)
# Create your views here.