摘要: 一、函数视图 1、在子应用的views.py文件中定义 2、必须传递参数request 3、路由条目配置:路由与函数视图引用 映射 示例: def index(request): """ :param request: WSGI对象,自动传递 :return: HttpResponse对象 """ 阅读全文
posted @ 2021-08-13 16:07 潘潘达 阅读(536) 评论(0) 推荐(1) 编辑