On 08/20/2010 02:16 PM, irum wrote:
Hi,
I am trying to parse json, loop through it and access its data.
At first I tried this:
for obj in serializers.deserialize("json", p):
a=2
response = HttpResponse()
response.status_code = 200
return response
One small thing to try:
response = HttpResponse('')
instead of:
response = HttpResponse()
So: feed it an empty string.
As it complains about being unreadable, perhaps you should stuff
something into it. Just a pretty wild guess...
Reinout
--
Reinout van Rees - [email protected] - http://reinout.vanrees.org
Programmer at http://www.nelen-schuurmans.nl
"Military engineers build missiles. Civil engineers build targets"
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.