摘要: 1.多对多表结构设计 class Student(models.Model): name = models.CharField(verbose_name='学生名字',max_length=100) class Meta: db_table = 'student' class Teacher(mod 阅读全文
posted @ 2020-09-01 21:56 cjxxl1213 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 1.Django自带的过滤器filter def index(request): print('index...........') navs = '今天天气真好fdsfds!!!' title='<h1>testsss</h1>' categories = models.Category.obje 阅读全文
posted @ 2020-09-01 20:56 cjxxl1213 阅读(140) 评论(0) 推荐(0) 编辑