from django.conf.urls import url
from django.views.generic import RedirectView

from . import views

urlpatterns = [
    url(r'^$', RedirectView.as_view(url='login/')),
    url(r'^groups/(?P<pk>\d+)/$', views.group_detail, name='group_detail'),
    url(r'^person/$', views.PersonList.as_view(), name='person-list'),
    url(r'^person/(?P<pk>[^/]+)/$', views.PersonDetail.as_view(), name='person-detail'),
    url(r'^missing_doc/$', views.missing_doc, name='missing_doc'),

    url(r'^login/$', views.login),
    url(r'^home/$', views.Home.as_view(), name='home'),
    url(r'^basicformnewperson/$', views.NewIndividualMember.as_view(), name='basicformnewperson'),
    url(r'^basicformnewfamily/$', views.NewFamilyMember.as_view(), name='basicformnewfamily'),
    url(r'^membership/$', views.MembershipList.as_view(), name='membership-list'),
    url(r'^membership/(?P<pk>[^/]+)/$', views.MembershipDetail.as_view(), name='membership-detail'),
]

@@ -21,16 +21,25 @@
 s import
+ include,
  url%0Afro
@@ -107,19 +107,15 @@
 ws%0A%0A
-urlpatterns
+%0Aperson
  = %5B
@@ -134,42 +134,54 @@
 $', 
-RedirectView.as_view(url='login/')
+views.PersonList.as_view(), name='person-list'
 ),%0A 
@@ -194,24 +194,19 @@
 (r'%5E
-groups/
 (?P%3Cpk%3E
-%5Cd
+%5B%5E/%5D
 +)/$
@@ -218,28 +218,38 @@
 ews.
-group_detail
+PersonDetail.as_view()
 , name='
 grou
@@ -248,14 +248,15 @@
 me='
-group_
+person-
 deta
@@ -272,22 +272,34 @@
  url(r'%5E
-person
+(?P%3Cpk%3E%5B%5E/%5D+)/edit
 /$', vie
@@ -299,35 +299,35 @@
 $', views.Person
-Lis
+Edi
 t.as_view(), nam
@@ -340,41 +340,152 @@
 son-
-lis
+edi
 t'),%0A
-    url(r'%5Eperson
+%5D%0A%0A%0Aurlpatterns = %5B%0A    url(r'%5Eperson/', include(person)),%0A    url(r'%5E$', RedirectView.as_view(url='login/')),%0A    url(r'%5Egroups
 /(?P%3Cpk%3E
 %5B%5E/%5D
@@ -472,36 +472,34 @@
 '%5Egroups/(?P%3Cpk%3E
-%5B%5E/%5D
+%5Cd
 +)/$', views.Per
@@ -499,38 +499,28 @@
 ews.
-PersonDetail.as_view()
+group_detail
 , name='
 pers
@@ -507,39 +507,38 @@
 p_detail, name='
-person-
+group_
 detail'),%0A    ur

Reorganiza urls con include