Extracting items out of a QueryDict

后端 未结 8 1245
清酒与你
清酒与你 2020-12-29 07:04

I have a querydict that looks like the following:


How would I extract

8条回答
  •  清歌不尽
    2020-12-29 07:26

    It seems like your client is posting JSON rather than formencoded data. Instead of accessing request.POST, use request.body (request.raw_post_data in versions 1.3 or less) and use json.loads() to convert to a dict.

提交回复
热议问题