在Django请求中,我具有以下内容:
POST:<QueryDict: {u'section': [u'39'], u'MAINS': [u'137']}>
我如何获得的价值section
和MAINS
?
if request.method == 'GET':
qd = request.GET
elif request.method == 'POST':
qd = request.POST
section_id = qd.__getitem__('section') or getlist....