from django.conf.urls import url

from . import views

urlpatterns = [
    url(r'^$', views.group_list),
    url(r'^groups/(?P<pk>\d+)/$', views.group_detail, name='group_detail'),
    url(r'^person/$', views.person_list),
    url(r'^person/(?P<pk>\d+)/$', views.person_detail, name='person_detail'),
    url(r'^missing_doc/$', views.missing_doc),
]

from django.conf.urls import url

from . import views

urlpatterns = [
    url(r'^$', views.group_list),
    url(r'^groups/(?P<pk>\d+)/$', views.group_detail, name='group_detail'),
    url(r'^person/$', views.person_list),
    url(r'^person/(?P<pk>[^/]+)/$', views.person_detail, name='person_detail'),
    url(r'^missing_doc/$', views.missing_doc),
]

Corrige expresión regular de URL detalle de persona