from django.urls import path from todo import views app_name = 'todo' urlpatterns = [ path('', views.list_lists, name="lists"), # Three paths into `list_detail` view path( 'mine/', views.list_detail, {'list_slug': 'mine'}, name="mine"), path( '//', views.list_detail, name='list_detail'), path( '//completed/', views.list_detail, {'view_completed': True}, name='list_detail_completed'), path( '//delete/', views.del_list, name="del_list"), path( 'add_list/', views.add_list, name="add_list"), path( 'task//', views.task_detail, name='task_detail'), path( 'search/', views.search, name="search"), # View reorder_tasks is only called by JQuery for drag/drop task ordering # Fix me - this could be an op in the same view, rather than a separate view. path('reorder_tasks/', views.reorder_tasks, name="reorder_tasks"), path('ticket/add/', views.external_add, name="external_add"), path('recent/added/', views.list_detail, {'list_slug': 'recent-add'}, name="recently_added"), path('recent/completed/', views.list_detail, {'list_slug': 'recent-complete'}, name="recently_completed"), ]