View in DRF


Misc

  1. request.user 是 DRF 用来表示“当前请求的用户是谁”的字段,是由认证系统(Authentication)自动赋值的
  2. 可以使用DRF的Response,返回请求