Django Library PaTT
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

urls.py 1.7KB

12345678910111213141516171819202122232425262728293031
  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. path('profile', views.patt_profile, name='patt-profile'),
  9. #
  10. # views and urls
  11. #
  12. path('tasklist/', views.patt_tasklist, name='patt-tasklist'),
  13. path('projectlist/', views.patt_projectlist, name='patt-projectlist'),
  14. path('taskview/<int:task_id>/', views.patt_taskview, name='patt-taskview'),
  15. path('helpview/', views.patt_helpview, name='patt-helpview'),
  16. path('helpview/<str:page>', views.patt_helpview, name='patt-helpview'),
  17. path('tasknew/', views.patt_tasknew, name='patt-tasknew'),
  18. path('projectnew/', views.patt_projectnew, name='patt-projectnew'),
  19. path('taskedit/<int:task_id>/', views.patt_taskedit, name='patt-taskedit'),
  20. path('projectedit/<int:project_id>/', views.patt_projectedit, name='patt-projectedit'),
  21. path('commentnew/<int:task_id>/', views.patt_commentnew, name='patt-commentnew'),
  22. path('commentedit/<int:task_id>/<int:comment_id>/', views.patt_commentedit, name='patt-commentedit'),
  23. path('filteredit/', views.patt_filteredit, name='patt-filternew'),
  24. path('filteredit/<int:search_id>/', views.patt_filteredit, name='patt-filteredit'),
  25. path('easysearch/', views.patt_easysearch, name='patt-easysearch'),
  26. path('tasklist/user_filter/<int:user_filter_id>/', views.patt_tasklist, name='patt-userfilter'),
  27. path('tasklist/common_filter/<int:common_filter_id>', views.patt_tasklist, name='patt-commonfilter'),
  28. #
  29. path('tasklist/search/', views.patt_tasklist, name='search'),
  30. ]