表单数据:Content-Type(请求头)为application/x-www-form-urlencoded的数据。
用request.POST获取
python
a = request.POST.get('a')
a = request.POST['a']
alist = request.POST.getlist('a')
非表单数据:Content-Type(请求头)为非application/x-www-form-urlencoded的数据。
非表单数据---json格式:Content-Type(请求头)为application/json
非表单数据---文件格式:Content-Type(请求头)为multipart/form-data
用request.body获取
如Postman配置如下:

views.py解析requst.body
python
def set_score(request):
json_result = json.loads(request.body)
# json_result为{'empId': '0879433', 'score': {'14': 3, '23': 2}}

参考文章:Django request.POST 、 request.body 、request.data使用_蓝绿色~菠菜的博客-CSDN博客