from django.conf.urls import patterns, url urlpatterns = patterns('analytics.views', url(r'^activity$', 'get_activity'), url(r'^realm_activity/(?P[\S]+)/$', 'get_realm_activity'), url(r'^user_activity/(?P[\S]+)/$', 'get_user_activity'), )