.. _installation: Installation ============ Install using pip:: pip install django-rpc ...or clone the project from github:: https://github.com/Alerion/django-rpc 1. Add ``djangorpc`` application to ``INSTALLED_APPS`` settings:: INSTALLED_APPS = ( ... 'djangorpc', ) Now all required JS files are accessible via Django ``staticfiles`` application. 2. Add jQuery to your page. You can use one from our application for a quick start:: 3. Add required JS scripts:: 4. You can handle all errors in one place and show some message to user:: //Show error message for RPC exceptions jQuery.Rpc.on('exception', function(event){ alert('Error during RPC request: '+event.message); }); 5. Do not forget about CSRF for Ajax requests. Here is an example::