json RPC
Links
django-json-rpc on the PyPi page.
django-json-rpc
Note: I have tried django-json-rpc, and it works OK (apart from the browser)… it might be better to use jsonrpclib (or something else).
Error
To return an error to the JSON-RPC call, just throw an exception.