from django.conf.urls import url

from . import views

urlpatterns = [
    url(
        r'^chapters/(?P<pk>\d+)/$',
        views.ChapterDetailView.as_view(),
        name='chapter-detail'
    ),
    url(
        r'^paragraphs/(?P<pk>\d+)/$',
        views.ParagraphDetailView.as_view(),
        name='paragraph-detail'
    ),
    # url(r'^chapters/(?P<pk>\d+)/$'
    url(
        r'^manage/chapter/(?P<pk>\d+)/$',
        views.ChapterManagementView.as_view(),
        name='chapter-management'
    ),
]

from django.conf.urls import url

from . import views

urlpatterns = [
    url(
        r'^chapters/(?P<pk>\d+)/$',
        views.ChapterDetailView.as_view(),
        name='chapter-detail'
    ),
    url(
        r'^paragraphs/(?P<pk>\d+)/$',
        views.ParagraphDetailView.as_view(),
        name='paragraph-detail'
    ),
    url(
        r'^manage/chapters/(?P<pk>\d+)/$',
        views.ChapterManagementView.as_view(),
        name='chapter-management'
    ),
]

Unify url routes to plural
Unify url routes to plural

  from django.conf.urls import url
  
  from . import views
  
  urlpatterns = [
      url(
          r'^chapters/(?P<pk>\d+)/$',
          views.ChapterDetailView.as_view(),
          name='chapter-detail'
      ),
      url(
          r'^paragraphs/(?P<pk>\d+)/$',
          views.ParagraphDetailView.as_view(),
          name='paragraph-detail'
      ),
-     # url(r'^chapters/(?P<pk>\d+)/$'
      url(
-         r'^manage/chapter/(?P<pk>\d+)/$',
+         r'^manage/chapters/(?P<pk>\d+)/$',
          views.ChapterManagementView.as_view(),
          name='chapter-management'
      ),
  ]
  
Unify url routes to plural
## Code Before:
from django.conf.urls import url

from . import views

urlpatterns = [
    url(
        r'^chapters/(?P<pk>\d+)/$',
        views.ChapterDetailView.as_view(),
        name='chapter-detail'
    ),
    url(
        r'^paragraphs/(?P<pk>\d+)/$',
        views.ParagraphDetailView.as_view(),
        name='paragraph-detail'
    ),
    # url(r'^chapters/(?P<pk>\d+)/$'
    url(
        r'^manage/chapter/(?P<pk>\d+)/$',
        views.ChapterManagementView.as_view(),
        name='chapter-management'
    ),
]

## Instruction:
Unify url routes to plural
## Code After:
from django.conf.urls import url

from . import views

urlpatterns = [
    url(
        r'^chapters/(?P<pk>\d+)/$',
        views.ChapterDetailView.as_view(),
        name='chapter-detail'
    ),
    url(
        r'^paragraphs/(?P<pk>\d+)/$',
        views.ParagraphDetailView.as_view(),
        name='paragraph-detail'
    ),
    url(
        r'^manage/chapters/(?P<pk>\d+)/$',
        views.ChapterManagementView.as_view(),
        name='chapter-management'
    ),
]
