开发者

Best way to get xml-rpc and django working together

开发者 https://www.devze.com 2023-01-04 19:10 出处:网络
I have worked with Django for a while but I am new to xml-rpc.I have two Django servers running and the first needs to ca开发者_如何学Pythonll functions from some modules of second server.I find xml-r

I have worked with Django for a while but I am new to xml-rpc. I have two Django servers running and the first needs to ca开发者_如何学Pythonll functions from some modules of second server. I find xml-rpc easiest way to do so but don't want to run a separate server for this only.

What options do I have? Can I run Django's web-server and xml-rpc server with a single manage runserver command ?


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


You may also consider David Fisher's rpc4django which supports both XMLRPC and JSONRPC within a single package. Features include:

  • Detects request type (JSONRPC or XMLRPC) based on content
  • Easy identification of RPC methods via a decorator
  • Pure python and requires no external modules except Django
  • Customizable RPC method documentation including reST
  • Supports XMLRPC and JSONRPC introspection
  • Supports method signatures (unlike SimpleXMLRPCServer)
  • Easy installation and integration with existing Django projects
  • Ties in with Django’s authentication and authorization


Try: http://pypi.python.org/pypi/django-xmlrpc

0

精彩评论

暂无评论...
验证码 换一张
取 消