From Django 1.5 onward request.raw_post_data can no longer be used. Instead we have to use request.body