def post(self, request):
create_form = BookForm(request.POST)
if create_form.is_valid():
create_form.save()
response = {"data": "goes here"}
return HttpResponse(json.dumps(response), content_type='application/json')
$.ajax({
method: 'post',
url: your-url,
data: serialized-data
}).done(function(response){
console.log(response.data)
});