> Server-side code
> -
> .
> json_data = serializers.deserialize("json", request.POST['data'])
> print "\n" + str(sjson_data)
> .
Typo above. Should be:
print "\n" + str(json_data)
--~--~-~--~~~---~--~~
You received this message be
Hi All,
I'm running into a situation that completely baffles me. I am
writing unit tests for my Django view that accepts JSON and returns
JSON back to the client. Right now, the client is the Django unit
test client. What I've done is in my test, I create a Django model
object, let's call i
2 matches
Mail list logo