2
I think you might need to use HttpResponse() rather than render()
to pass back the data to client side:
from django.http.response import HttpResponse
import json
def one_move(request,postID):
...
d = {"responseText": "your data here"}
return HttpResponse(json.dumps(d))
Then you should be able to get the return in your ajax_call_complete()
javascript function
Source:stackexchange.com