Update views.py

from versions since django 1.4, the JSON object is in request.body
Merge pull request #1 from santhoshdevaraj/patch-1

Update views.py