Django request Post json
问题 I try to test a view, I receive a json request from the IPad, the format is: req = {"custom_decks": [ { "deck_name": "deck_test", "updates_last_applied": "1406217357", "created_date": 1406217380, "slide_section_ids": [ 1 ], "deck_id": 1 } ], "custom_decks_to_delete": [] } I checked this in jsonlint and it passed. I post the req via: response = self.client.post('/library/api/6.0/user/'+ uuid + '/store_custom_dec/',content_type='application/json', data=req) The view return "creation_success":