Django在获取表单内容时出现了
'WSGIRequest' object has no attribute 'get'
以前的view.py的方法
zhivalue = request.get("content")
原因是在views中获取这个字段的方法是错误的
修改为:
zhivalue = request.POST.get("content")
Django在获取表单内容时出现了
'WSGIRequest' object has no attribute 'get'
以前的view.py的方法
zhivalue = request.get("content")
原因是在views中获取这个字段的方法是错误的
修改为:
zhivalue = request.POST.get("content")