from django.urls import path from .views.example import ExampleList, ExampleDetail from .views.comment import CommentList, CommentDetail from .views.example_state import ExampleStateList urlpatterns = [ path( route='examples', view=ExampleList.as_view(), name='example_list' ), path( route='examples/', view=ExampleDetail.as_view(), name='example_detail' ), path( route='comments', view=CommentList.as_view(), name='comment_list' ), path( route='comments/', view=CommentDetail.as_view(), name='comment_detail' ), path( route='examples//states', view=ExampleStateList.as_view(), name='example_state_list' ), ]