diff options
author | sunnychaudhari <yuvaraj.chaudhari1@gmail.com> | 2014-12-15 22:32:45 +0530 |
---|---|---|
committer | sunnychaudhari <yuvaraj.chaudhari1@gmail.com> | 2014-12-15 22:32:45 +0530 |
commit | 87ddad848f15829c3b7bb8675a0779018cb95f11 (patch) | |
tree | cb70e9a131583be8484d45878fa203ff6f69e703 /gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py | |
parent | 197d0de83cb46e353f54a028e44f5e96e06c9bcc (diff) | |
download | gnowsys-87ddad848f15829c3b7bb8675a0779018cb95f11.tar.gz |
urls added for json-rpc to fetch the resources with its metadata
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py')
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py b/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py index 5f90dfb..6ee825d 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py +++ b/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py @@ -12,6 +12,8 @@ from gnowsys_ndf.ndf.forms import * from gnowsys_ndf.ndf.views.home import HomeRedirectView, homepage from gnowsys_ndf.ndf.views.methods import tag_info from gnowsys_ndf.ndf.views.custom_app_view import custom_app_view, custom_app_new_view +from jsonrpc import jsonrpc_site +from gnowsys_ndf.ndf.views import rpc_resources admin.autodiscover() @@ -52,6 +54,9 @@ urlpatterns = patterns('', (r'^(?P<group_id>[^/]+)/', include('gnowsys_ndf.ndf.urls.user')), (r'^(?P<group_id>[^/]+)/ratings', include('gnowsys_ndf.ndf.urls.ratings')), (r'^(?P<group_id>[^/]+)/topics', include('gnowsys_ndf.ndf.urls.topics')), + # django-json-rpc method calls + url(r'^json/browse/$', 'jsonrpc.views.browse', name='jsonrpc_browser'), + url(r'^json/$', jsonrpc_site.dispatch, name='jsonrpc_mountpoint'), url(r'^(?P<group_id>[^/]+)/topic_details/(?P<app_Id>[\w-]+)', 'gnowsys_ndf.ndf.views.topics.topic_detail_view', name='topic_details'), |