how to obtain all values of a multi-valued key from Django's request.GET QueryDict

后端 未结 7 948
花落未央
花落未央 2021-02-07 04:11

The Django docs say at http://docs.djangoproject.com/en/dev/ref/request-response/#django.http.QueryDict.iteritems thatQueryDict.iteritems() uses the same last-value

7条回答
  •  闹比i
    闹比i (楼主)
    2021-02-07 04:51

    I believe QueryDict.urlencode achieves your desired outcome if all you want to do is print out the QueryDict then just

    print request.GET.urlencode()
    

    should do the trick. Let me know if you were trying to do something else and I'll try to help!

提交回复
热议问题