正在尝试从html中发送一个简单的帖子。。在
当我在django中收到请求时,我只执行print post请求。(计数没有反映在我的输出中邓诺y…)
print "counterUpdate"
print request.method
print request.path
print request.POST.get
print "Expects data of counts in next line console print but it is empty"
countValues=request.POST['counts'] # counts is not getting reflected in my output dunno y..
updateType=request.POST['key']
print countValues
print updateType
print "dddd1"
for data in request.POST:
print data
print "Iteration Over"
为了以下目的:
^{pr2}$
必须使用getlist,如:
有关详细信息:Django: using <select multiple> and POST
相关问题 更多 >
编程相关推荐