摘要: 在作者列表页面的操作栏中加上编辑按钮 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>作者列表</title> </head> <body> <h1>作者列表</h1> <table border="1"> 阅读全文
posted @ 2019-07-24 22:39 Sch01aR# 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 修改 author_list.html,添加删除按钮 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>作者列表</title> </head> <body> <h1>作者列表</h1> <table bord 阅读全文
posted @ 2019-07-24 20:40 Sch01aR# 阅读(480) 评论(0) 推荐(0) 编辑
摘要: 在 book_list.html 的页面下方加上 “添加作者” 的链接 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>作者列表</title> </head> <body> <h1>作者列表</h1> <t 阅读全文
posted @ 2019-07-24 20:00 Sch01aR# 阅读(658) 评论(0) 推荐(0) 编辑
摘要: 在 views.py 中添加展示作者列表的函数 from django.shortcuts import render, redirect, HttpResponse from app01 import models # 展示出版社列表 def publisher_list(request): pa 阅读全文
posted @ 2019-07-24 17:10 Sch01aR# 阅读(517) 评论(0) 推荐(0) 编辑
摘要: models.py 代码: from django.db import models # Create your models here. # 出版社 class Publisher(models.Model): id = models.AutoField(primary_key=True) # 自 阅读全文
posted @ 2019-07-24 15:11 Sch01aR# 阅读(244) 评论(0) 推荐(0) 编辑