摘要: MVC 有一种程序设计模式叫 MVC,其核心思想是分工, 解耦,让不同的代码块之间降低耦合,增强代码的可扩展性和可移植性,实现向后兼容**。 MVC 的全拼为 Model-View-Controller ,最早由 TrygveReenskaug 在1978年提出,是施乐帕罗奥多研究中心( Xerox 阅读全文
posted @ 2021-01-14 23:07 hello_Ms_w 阅读(180) 评论(0) 推荐(0) 编辑
摘要: # views.py from datetime import datetime class BooksAPIVIew(View): """ 查询所有图书、增加图书 """ def get(self, request): """ 查询所有图书 路由:GET /books/ """ queryset 阅读全文
posted @ 2021-01-14 22:25 hello_Ms_w 阅读(139) 评论(0) 推荐(0) 编辑