urls.py 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. from django.urls import path
  2. from django.contrib.auth import views as auth_views
  3. from . import views
  4. urlpatterns = [
  5. path('', views.index, name='index'),
  6. # LOG-IN / SIGN-UP
  7. path('register/', views.register, name='register'),
  8. path('accounts/login/', auth_views.LoginView.as_view(template_name='registration/login.html')),
  9. path('accounts/logout/', auth_views.LogoutView.as_view(template_name='registration/logout.html')),
  10. # PROJECT
  11. path('project-list/', views.ProjectListView.as_view(), name='project-list'),
  12. path('project/<int:pk>/', views.ProjectDetailView.as_view(), name='project-detail'),
  13. path('new_project/', views.new_project, name='new-project'),
  14. path('delete_project/<int:pk>/', views.delete_project, name='delete-project'),
  15. # CANVAS
  16. path('canvas/<int:pk>/', views.CanvasDetailView.as_view(), name='canvas-detail'),
  17. path('new_canvas/<int:canvas_type>/', views.new_canvas, name='new-canvas'),
  18. path('delete_canvas/<int:pk>/', views.delete_canvas, name='delete-canvas'),
  19. # IDEAS
  20. path('new_trial_idea/', views.new_trial_idea, name='new-trial-idea'),
  21. path('new_idea/', views.new_idea, name='new-idea'),
  22. path('delete_idea/', views.delete_idea, name='delete-idea'),
  23. path('edit_idea/', views.edit_idea, name='edit-idea'),
  24. # COMMENTS
  25. path('new_comment/', views.new_comment, name='new-comment'),
  26. path('delete_comment/', views.delete_comment, name='delete-comment'),
  27. path('resolve_individual_comment/', views.single_comment_resolve, name='single-comment-resolve'),
  28. path('resolve_all_comments/', views.all_comment_resolve, name='all-comment-resolve'),
  29. # COLLABORATORS
  30. path('add_user/', views.add_user, name='add-user'),
  31. path('delete_user/', views.delete_user, name='delete-user'),
  32. path('promote_user/', views.promote_user, name='promote-user'),
  33. path('demote_user/', views.demote_user, name='demote-user'),
  34. path('toggle_public/', views.toggle_public, name='toggle-public'),
  35. # TAGS
  36. path('add_tag/', views.add_tag, name='add-tag'),
  37. path('delete_tag/', views.delete_tag, name='delete-tag'),
  38. ]