URL:
#定义删除书功能:def del_book(request): pk = request.GET.get("pk") models.Book.objects.get(pk = pk).delete() return redirect("/book/")