2 from django.conf.urls import patterns, url
3 from organizations import views
6 urlpatterns = patterns(
8 url(r'^$', views.organizations, name="organizations"),
9 url(r'^new/$', views.org_new, name="organizations_new"),
10 url(r'^(?P<pk>\d+)/$', views.main, name="organizations_main"),
11 url(r'^(?P<pk>\d+)/members/$', views.main, {'tab': 'members'}, name="organizations_members"),
12 url(r'^(?P<pk>\d+)/edit/$', views.edit, name="organizations_edit"),
13 url(r'^(?P<pk>\d+)/join/$', views.join, name="organizations_join"),
14 url(r'^(?P<pk>\d+)/membership/$', views.membership, name="organizations_membership"),
16 url(r'^people/(?P<pk>\d+)/$', views.user_card, name="organizations_user"),
17 url(r'^people/me/$', views.user_edit, name="organizations_user_edit"),