Best way to get xml-rpc and django to work together

I have been working with Django for a while, but I am new to xml-rpc. I have two Django servers, and the first you need to call functions from some modules of the second server. I find xml-rpc the easiest way to do this, but don't want to start a separate server just for that.

What options do I have? Can I start the Django web server and xml-rpc server with one manage runningerver command ?

+6
python django xml-rpc
source share
3 answers

Easy - we use http://code.djangoproject.com/wiki/XML-RPC to add the xml-rpc server to our django server.

+7
source share

You can also consider David Fisher rpc4django , which supports both XMLRPC and JSONRPC in one package. Features include:

  • Determines the type of request (JSONRPC or XMLRPC) based on the content
  • Simple identification of RPC methods through the decorator
  • Pure python and does not require external modules except Django
  • Custom RPC documentation including reST
  • XMLRPC and JSONRPC introspection support
  • Supports method signatures (unlike SimpleXMLRPCServer)
  • Easy installation and integration with existing Django projects.
  • Linking with Djangos Authentication and Authorization
+4
source share
0
source share

All Articles