方法二 (用orm创建)
class Author(models.Model):
id = models.AuthorField(primary_key=True) # 自增id主键
name = models.CharField(max_length=32) # 作者名字
books = models.ManyToManyField(to=Book)

查询:在中找到所有作者信息,然后在页面展示出来
创建作者函数并配置好


创建html文件在页面上展示出来



添加:创建添加操作的函数,展示添加页面,获取用户的添加信息,返回给,再展示作者信息.
创建添加操作的函数,并配置好

创建获取信息的页面

在作者列表中添加删除操作项,锁定要删除的对象,

创建要删除的操作函数,




can not tell why i enjoy this summer holiday better. i like the touch of loneliness accompnied some more freedom in my life, i do not have to work, and can control all my time freely. my life is filled with music, movies, nice food and books, which are all my favorites. but i also want to create a miracle in this summer, come on , guys , do not guess. this will be a secret, and i will retell the story again , maybe next summer or a little before that.。 let books = await book.all()。
pthread_t id1,id2。 pthread_t id1,id2。
上传文件
创建上传文件的操作函数,并配置好


创建上传文件的html页面
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-94448-2.html
炒股票很难发财
然而后边那女的是几个意思
埋怨命苦真悲哀