I'm using the Python lib urllib2 method Request to send http requests to my Django project. I've had problem however sending and receiving arrays though, not being sure how I should send it to be able to parse it properly in Django.
I have this data: {ids: ['2752c2fa539c6bbf2c1f3973a3']} and I'm using the urllib lib's function urlencode to convert it into a string like this ids=%5Bu%2752c2fa539c6bbf2c1f3973a3%27%5D. Now in my Django view I try to parse the indata like this ids = req.POST.getlist('ids') but when I print ids it's equal to [u"[u'2752c2fa539c6bbf2c1f3973a3']"]. What am I doing wrong.
Thanks in advance,
Mattias