urls.py 998 B

1234567891011121314151617181920212223
  1. from django.urls import path
  2. from .views import tasklistview, taskview, caseview
  3. from .views.beidoutask import BeidouTaskEditView, BeidouTaskView
  4. from .views.beidoutaskexecute import BeidouCaseExecuteView
  5. from .views.beidoutasklist import BeidouTaskCreateView, BeidouTaskListView, BeidouTaskInfoView
  6. urlpatterns = [
  7. path('', tasklistview.TaskListView.as_view()),
  8. # beidou
  9. path('beidou', BeidouTaskCreateView.as_view()),
  10. path('beidou/list', BeidouTaskListView.as_view()),
  11. path('beidou/info', BeidouTaskInfoView.as_view()),
  12. path('beidou/edit', BeidouTaskEditView.as_view()),
  13. path('beidou/<str:task_id>', BeidouTaskView.as_view()),
  14. path('beidou/<str:task_id>/execute', BeidouCaseExecuteView.as_view()),
  15. path('<str:task_id>', taskview.TaskView.as_view()),
  16. path('<str:task_id>/edit', taskview.TaskEdit.as_view()),
  17. path('<str:task_id>/case-file', caseview.CaseView.as_view()),
  18. path('<str:task_id>/case-file/execute', caseview.CaseExecute.as_view()),
  19. ]