1. request.data标签:FILES,分析,self,request,query,DRF From: https://www.cnblogs.com/so-shuai/p/17336699.html
post请求内的数据都放在了request.data
2.request.query_parme
get 请求内携带的参数都放在了request.query_parms
3. request.FILES
def FILES(self):
# Leave this one alone for backwards compat with Django's request.FILES
# Different from the other two cases, which are not valid property
# names on the WSGIRequest class.
if not _hasattr(self, '_files'):
self._load_data_and_files()
return self._files
4.APIView分析
4.1 as_view 方法分析
4.2 dispatch 方法分析
4.3 initialize_request 方法分析
4,4 initial 方法分析