# include these urls instead of urls.py if you are using the WSGI + Django middlewares
# to set request.team, manually hooking up List/Create views as well as the accept/reject

from django.conf.urls import patterns, url


urlpatterns = patterns(
    "pinax.teams.views",

    # team specific
    url(r"^detail/$", "team_detail", name="team_detail"),
    url(r"^join/$", "team_join", name="team_join"),
    url(r"^leave/$", "team_leave", name="team_leave"),
    url(r"^apply/$", "team_apply", name="team_apply"),
    url(r"^edit/$", "team_update", name="team_edit"),
    url(r"^manage/$", "team_manage", name="team_manage"),
    url(r"^ac/users-to-invite/$", "autocomplete_users", name="team_autocomplete_users"),  # noqa
    url(r"^invite-user/$", "team_invite", name="team_invite"),
    url(r"^members/(?P<pk>\d+)/revoke-invite/$", "team_member_revoke_invite", name="team_member_revoke_invite"),  # noqa
    url(r"^members/(?P<pk>\d+)/resend-invite/$", "team_member_resend_invite", name="team_member_resend_invite"),  # noqa
    url(r"^members/(?P<pk>\d+)/promote/$", "team_member_promote", name="team_member_promote"),  # noqa
    url(r"^members/(?P<pk>\d+)/demote/$", "team_member_demote", name="team_member_demote"),  # noqa
    url(r"^members/(?P<pk>\d+)/remove/$", "team_member_remove", name="team_member_remove"),  # noqa

)

@@ -215,16 +215,37 @@
 s, url%0A%0A
+from . import views%0A%0A
 %0Aurlpatt
@@ -265,34 +265,8 @@
 ns(%0A
-    %22pinax.teams.views%22,%0A%0A
     
@@ -299,25 +299,30 @@
 %5Edetail/$%22, 
-%22
+views.
 team_detail%22
@@ -320,17 +320,16 @@
 m_detail
-%22
 , name=%22
@@ -359,25 +359,30 @@
 r%22%5Ejoin/$%22, 
-%22
+views.
 team_join%22, 
@@ -378,17 +378,16 @@
 eam_join
-%22
 , name=%22
@@ -416,25 +416,30 @@
 %22%5Eleave/$%22, 
-%22
+views.
 team_leave%22,
@@ -436,17 +436,16 @@
 am_leave
-%22
 , name=%22
@@ -475,25 +475,30 @@
 %22%5Eapply/$%22, 
-%22
+views.
 team_apply%22,
@@ -495,17 +495,16 @@
 am_apply
-%22
 , name=%22
@@ -533,25 +533,30 @@
 r%22%5Eedit/$%22, 
-%22
+views.
 team_update%22
@@ -554,17 +554,16 @@
 m_update
-%22
 , name=%22
@@ -597,29 +597,46 @@
 age/$%22, 
-%22team_m
+views.TeamM
 anage
-%22
+View.as_view()
 , name=%22
@@ -684,17 +684,22 @@
 ite/$%22, 
-%22
+views.
 autocomp
@@ -708,17 +708,16 @@
 te_users
-%22
 , name=%22
@@ -778,29 +778,46 @@
 ser/$%22, 
-%22team_i
+views.TeamI
 nvite
-%22
+View.as_view()
 , name=%22
@@ -872,33 +872,38 @@
 voke-invite/$%22, 
-%22
+views.
 team_member_revo
@@ -907,25 +907,24 @@
 evoke_invite
-%22
 , name=%22team
@@ -1001,25 +1001,30 @@
 -invite/$%22, 
-%22
+views.
 team_member_
@@ -1036,17 +1036,16 @@
 d_invite
-%22
 , name=%22
@@ -1116,33 +1116,38 @@
 d+)/promote/$%22, 
-%22
+views.
 team_member_prom
@@ -1145,25 +1145,24 @@
 mber_promote
-%22
 , name=%22team
@@ -1226,25 +1226,30 @@
 /demote/$%22, 
-%22
+views.
 team_member_
@@ -1254,17 +1254,16 @@
 r_demote
-%22
 , name=%22
@@ -1334,17 +1334,22 @@
 ove/$%22, 
-%22
+views.
 team_mem
@@ -1358,17 +1358,16 @@
 r_remove
-%22
 , name=%22
@@ -1396,11 +1396,10 @@
  # noqa%0A
-%0A
 )%0A

fix views referenced by context_urls