[Answer]-Django JSON_RPC doesn't work

1πŸ‘

βœ…

i found the solution. in fact json-rpc works but in JSON-RPC Browser i have to treat with some difference than regular way. according to here, we should initialize and call json-rpc methods like this:

from jsonrpc.proxy import ServiceProxy
s = ServiceProxy('http://localhost:8080/json/')
s.myapp.sayHello('Sam')

but it’s not true! this method is correct when we use it in django shell or in our main code! in JSON-RPC Browser we just need to call our method like this:

jsonrpc.sayHello('sam')

just that!

thanks to all.

πŸ‘€Fcoder

Leave a comment