在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....