django的视图函数笔记

视图函数:

  1. 视图函数的第一个参数必须是request。这个参数绝对不能少。
  2. 视图函数的返回值必须是django.http.response.HttpResponseBase的子类的对象。

猜你喜欢

转载自www.cnblogs.com/jin-ting/p/11758215.html