mirror of https://github.com/doccano/doccano.git
pythonannotation-tooldatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learning
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
35 lines
782 B
from django.urls import include, path
|
|
|
|
from .views import project, tag, task
|
|
|
|
urlpatterns_project = [
|
|
path(
|
|
route='tags',
|
|
view=tag.TagList.as_view(),
|
|
name='tag_list'
|
|
),
|
|
path(
|
|
route='tags/<int:tag_id>',
|
|
view=tag.TagDetail.as_view(),
|
|
name='tag_detail'
|
|
),
|
|
]
|
|
|
|
urlpatterns = [
|
|
path(
|
|
route='projects',
|
|
view=project.ProjectList.as_view(),
|
|
name='project_list'
|
|
),
|
|
path(
|
|
route='tasks/status/<task_id>',
|
|
view=task.TaskStatus.as_view(),
|
|
name='task_status'
|
|
),
|
|
path(
|
|
route='projects/<int:project_id>',
|
|
view=project.ProjectDetail.as_view(),
|
|
name='project_detail'
|
|
),
|
|
path('projects/<int:project_id>/', include(urlpatterns_project))
|
|
]
|