from django.conf.urls import url

from . import views

#
urlpatterns = [
    url(r'^$', views.author_list, name='list'),
    url(r'(?P<author_pk>\d+)/(?P<book_pk>\d+)/$', views.book_detail, name='book'),
    url(r'(?P<pk>\d+)/$', views.author_detail, name='detail'),
]

94335beb4526b50e389d90f20ecba918d9d6f9f4
<mask token>

<mask token>
urlpatterns = [url('^$', views.author_list, name='list'), url(
    '(?P<author_pk>\\d+)/(?P<book_pk>\\d+)/$', views.book_detail, name=
    'book'), url('(?P<pk>\\d+)/$', views.author_detail, name='detail')]

from django.conf.urls import url
from . import views
urlpatterns = [url('^$', views.author_list, name='list'), url(
    '(?P<author_pk>\\d+)/(?P<book_pk>\\d+)/$', views.book_detail, name=
    'book'), url('(?P<pk>\\d+)/$', views.author_detail, name='detail')]

from django.conf.urls import url

from . import views

#
urlpatterns = [
    url(r'^$', views.author_list, name='list'),
    url(r'(?P<author_pk>\d+)/(?P<book_pk>\d+)/$', views.book_detail, name='book'),
    url(r'(?P<pk>\d+)/$', views.author_detail, name='detail'),
]
