from django conf urls defaults import import gameteam views urlpattern

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from django.conf.urls.defaults import *
import gameteam.views
urlpatterns = patterns('',
# gameteam
(r'^game/(?P<game_id>\d+)/team/create/$',
gameteam.views.create),
(r'^gameteam/(?P<team_id>\d+)/$',
gameteam.views.show),
(r'^gameteam/(?P<team_id>\d+)/edit/$',
gameteam.views.edit),
# captain
('^gameteam/(?P<team_id>\d+)/invite-captain/(?P<user_id>\d+)/$',
gameteam.views.invite_captain),
('^gameteam/(?P<team_id>\d+)/accept-captain-invite/',
gameteam.views.accept_captain_invite),
# member
('^gameteam/(?P<team_id>\d+)/invite-member/(?P<user_id>\d+)/$',
gameteam.views.invite_member),
('^gameteam/(?P<team_id>\d+)/accept-member-invite/',
gameteam.views.accept_member_invite),
('^gameteam/(?P<team_id>\d+)/request-membership/$',
gameteam.views.request_membership),
('^gameteam/(?P<team_id>\d+)/remove-member/(?P<user_id>\d+)/$',
gameteam.views.remove_member),
)