from django.urls import include, path from .views import comment, example, example_state, health, project, tag, task urlpatterns_project = [ path( route='examples', view=example.ExampleList.as_view(), name='example_list' ), path( route='examples/', view=example.ExampleDetail.as_view(), name='example_detail' ), path( route='tags', view=tag.TagList.as_view(), name='tag_list' ), path( route='tags/', view=tag.TagDetail.as_view(), name='tag_detail' ), path( route='comments', view=comment.CommentList.as_view(), name='comment_list' ), path( route='comments/', view=comment.CommentDetail.as_view(), name='comment_detail' ), path( route='examples//states', view=example_state.ExampleStateList.as_view(), name='example_state_list' ), ] urlpatterns = [ path( route='health', view=health.Health.as_view(), name='health' ), path( route='projects', view=project.ProjectList.as_view(), name='project_list' ), path( route='tasks/status/', view=task.TaskStatus.as_view(), name='task_status' ), path( route='projects/', view=project.ProjectDetail.as_view(), name='project_detail' ), path('projects//', include(urlpatterns_project)) ]