^
开头/
结尾$
结尾(?P<name>pattern)
代替(pattern)
# parent urls
urlpatterns = [
url(r'^persons/', include('person.urls')),
]
# sub urls
urlpatterns = [
url(r'^$', PersonsView.as_view()),
url(r'^(?P<person_id>\w+)$', PersonView.as_view()),
url(r'^(?P<person_id>\w+)/job$', PersonJobView.as_view()),
]