2020-12-03 12:31:39 -05:00
|
|
|
from django.shortcuts import redirect
|
|
|
|
from django.urls import path
|
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path('', views.index, name='index'),
|
|
|
|
# ex: /CMS00001/
|
2021-05-19 17:01:28 -04:00
|
|
|
path('<str:tool_slug>/', views.toolDetail, name='toolDetail'),
|
2020-12-03 12:31:39 -05:00
|
|
|
# ex: /CMS00001/tasks/
|
2021-05-19 17:01:28 -04:00
|
|
|
path('<str:tool_slug>/tasks/', lambda request, tool_slug: redirect('toolDetail', tool_slug)),
|
2020-12-03 12:31:39 -05:00
|
|
|
# ex: /CMS00001/tasks/task_name/
|
2021-05-19 17:01:28 -04:00
|
|
|
path('<str:tool_slug>/tasks/<str:task_slug>', views.taskDetail, name='taskDetail'),
|
2020-12-03 12:31:39 -05:00
|
|
|
]
|