关于python为什么无法获取request.POST.get值


这是由于该框架有一个限制,要想解析post的data数据,必须要在请求头中加入
Content-Type: application/x-www-form-urlencoded
才会去正常解析body中的值,不然永远获取到null