- url(r'^book/(?P<slug>[^/]+)/xml$', views.book_xml, name="documents_book_xml"),
- url(r'^book/dc/(?P<slug>[^/]+)/xml$', views.book_xml_dc, name="documents_book_xml_dc"),
- url(r'^book/(?P<slug>[^/]+)/txt$', views.book_txt, name="documents_book_txt"),
- url(r'^book/(?P<slug>[^/]+)/html$', views.book_html, name="documents_book_html"),
- url(r'^book/(?P<slug>[^/]+)/epub$', views.book_epub, name="documents_book_epub"),
- url(r'^book/(?P<slug>[^/]+)/mobi$', views.book_mobi, name="documents_book_mobi"),
- url(r'^book/(?P<slug>[^/]+)/pdf$', views.book_pdf, name="documents_book_pdf"),
- url(r'^book/(?P<slug>[^/]+)/pdf-mobile$', views.book_pdf, kwargs={'mobile': True}, name="documents_book_pdf_mobile"),
+ path('book/<slug:slug>/xml', views.book_xml, name="documents_book_xml"),
+ path('book/dc/<slug:slug>/xml', views.book_xml_dc, name="documents_book_xml_dc"),
+ path('book/<slug:slug>/txt', views.book_txt, name="documents_book_txt"),
+ path('book/<slug:slug>/html', views.book_html, name="documents_book_html"),
+ path('book/<slug:slug>/epub', views.book_epub, name="documents_book_epub"),
+ path('book/<slug:slug>/mobi', views.book_mobi, name="documents_book_mobi"),
+ path('book/<slug:slug>/pdf', views.book_pdf, name="documents_book_pdf"),
+ path('book/<slug:slug>/pdf-mobile', views.book_pdf, kwargs={'mobile': True}, name="documents_book_pdf_mobile"),