django中提交表单,遇到了keyerror问题
获取不到提交的数据
解决办法:
添加提交方法的判断:
if request.method == 'POST': uname = request.POST['uname']