You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
782 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. from django.urls import include, path
  2. from .views import project, tag, task
  3. urlpatterns_project = [
  4. path(
  5. route='tags',
  6. view=tag.TagList.as_view(),
  7. name='tag_list'
  8. ),
  9. path(
  10. route='tags/<int:tag_id>',
  11. view=tag.TagDetail.as_view(),
  12. name='tag_detail'
  13. ),
  14. ]
  15. urlpatterns = [
  16. path(
  17. route='projects',
  18. view=project.ProjectList.as_view(),
  19. name='project_list'
  20. ),
  21. path(
  22. route='tasks/status/<task_id>',
  23. view=task.TaskStatus.as_view(),
  24. name='task_status'
  25. ),
  26. path(
  27. route='projects/<int:project_id>',
  28. view=project.ProjectDetail.as_view(),
  29. name='project_detail'
  30. ),
  31. path('projects/<int:project_id>/', include(urlpatterns_project))
  32. ]