Django Library PaTT
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.

urls.py 1.7KB

123456789101112131415161718192021222324252627282930
  1. from django.shortcuts import redirect
  2. from django.urls import path
  3. from django.urls.base import reverse
  4. from .search import SEARCH_MY_OPEN_TASKS
  5. from . import views
  6. urlpatterns = [
  7. path('', lambda request: redirect(reverse('patt-commonfilter', kwargs={'common_filter_id': SEARCH_MY_OPEN_TASKS}), permanent=False)),
  8. #
  9. # views and urls
  10. #
  11. path('tasklist/', views.patt_tasklist, name='patt-tasklist'),
  12. path('projectlist/', views.patt_projectlist, name='patt-projectlist'),
  13. path('taskview/<int:task_id>/', views.patt_taskview, name='patt-taskview'),
  14. path('helpview/', views.patt_helpview, name='patt-helpview'),
  15. path('helpview/<str:page>', views.patt_helpview, name='patt-helpview'),
  16. path('tasknew/', views.patt_tasknew, name='patt-tasknew'),
  17. path('projectnew/', views.patt_projectnew, name='patt-projectnew'),
  18. path('taskedit/<int:task_id>/', views.patt_taskedit, name='patt-taskedit'),
  19. path('projectedit/<int:project_id>/', views.patt_projectedit, name='patt-projectedit'),
  20. path('commentnew/<int:task_id>/', views.patt_commentnew, name='patt-commentnew'),
  21. path('commentedit/<int:task_id>/<int:comment_id>/', views.patt_commentedit, name='patt-commentedit'),
  22. path('filteredit/', views.patt_filteredit, name='patt-filternew'),
  23. path('filteredit/<int:search_id>/', views.patt_filteredit, name='patt-filteredit'),
  24. path('easysearch/', views.patt_easysearch, name='patt-easysearch'),
  25. path('tasklist/user_filter/<int:user_filter_id>/', views.patt_tasklist, name='patt-userfilter'),
  26. path('tasklist/common_filter/<int:common_filter_id>', views.patt_tasklist, name='patt-commonfilter'),
  27. #
  28. path('tasklist/search/', views.patt_tasklist, name='search'),
  29. ]