Simple JSON-RPC for Django

8 views
Skip to first unread message

Sam Sutch

unread,
Jul 3, 2009, 5:56:26 PM7/3/09
to JSON-RPC
Just extracted this from my commercial product and published it for
free as in speech on Github:

http://github.com/samuraisam/django-json-rpc/tree/master

It's very simple to use:

### myproj/myapp/views.py

from jsonrpc import jsonrpc_method

@jsonrpc_method('myapp.sayHello')
def whats_the_time(request, name='Lester'):
return "Hello %s" % name

### myproj/urls.py

from jsonrpc.site import jsonrpc_site
import myproj.myapp.views # you must import the views that need
connected

urls += patterns('', (r'^json/', jsonrpc_site.dispatch))

Please let me know if there are any problems or suggestions as I would
like to fix/implement em!
Reply all
Reply to author
Forward
0 new messages