-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathurls.py
More file actions
86 lines (83 loc) · 3.26 KB
/
urls.py
File metadata and controls
86 lines (83 loc) · 3.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
from django.urls import path, re_path, include
from news.views import NewsList, NewsDetail, NewsDetailSetViewed, NewsDetailSetLiked
from users.views import (
AchievementDetail,
AchievementList,
CurrentUser,
PublicUserListView,
SpecialistsList,
UserAdditionalRolesView,
UserDetail,
UserLeaderProjectsList,
UserProjectsList,
UserList,
UserTypesView,
VerifyEmail,
LogoutView,
LikedProjectList,
RegisteredEventsList,
SetUserOnboardingStage,
ResendVerifyEmail,
CurrentUserPrograms,
CurrentUserProgramsTags,
ForceVerifyView,
UserSubscribedProjectsList,
UserSpecializationsNestedView,
UserSpecializationsInlineView,
UserSkillsApproveDeclineView,
UserCVDownload,
UserCVMailing,
)
app_name = "users"
urlpatterns = [
path(
"specialists/", SpecialistsList.as_view()
), # this url actually returns mentors, experts and investors
path("users/", UserList.as_view()),
path('public-users/', PublicUserListView.as_view(), name='public-users'),
path("users/projects/", UserProjectsList.as_view()),
path("users/projects/leader/", UserLeaderProjectsList.as_view()),
path("users/liked/", LikedProjectList.as_view()),
path("users/roles/", UserAdditionalRolesView.as_view()),
path("users/types/", UserTypesView.as_view()),
path("users/specializations/nested/", UserSpecializationsNestedView.as_view()),
path("users/specializations/inline/", UserSpecializationsInlineView.as_view()),
path("users/download_cv/", UserCVDownload.as_view()),
path("users/send_mail_cv/", UserCVMailing.as_view()),
path("users/<int:pk>/", UserDetail.as_view()),
path("users/<int:pk>/subscribed_projects/", UserSubscribedProjectsList.as_view()),
path("users/<int:pk>/set_onboarding_stage/", SetUserOnboardingStage.as_view()),
path("users/<int:pk>/force_verify/", ForceVerifyView.as_view()),
path("users/<int:user_pk>/news/", NewsList.as_view()),
path("users/<int:user_pk>/news/<int:pk>/", NewsDetail.as_view()),
path("users/<int:user_pk>/news/<int:pk>/set_viewed/", NewsDetailSetViewed.as_view()),
path("users/<int:user_pk>/news/<int:pk>/set_liked/", NewsDetailSetLiked.as_view()),
path("users/<int:user_pk>/approve_skill/<int:skill_pk>/", UserSkillsApproveDeclineView.as_view()),
path("users/current/", CurrentUser.as_view()),
# todo: change password view
path("users/current/programs/", CurrentUserPrograms.as_view()),
path("users/current/programs/tags/", CurrentUserProgramsTags.as_view()),
path("users/current/events/", RegisteredEventsList.as_view()),
path("users/achievements/", AchievementList.as_view()),
path("users/achievements/<int:pk>/", AchievementDetail.as_view()),
path("logout/", LogoutView.as_view()),
path(
"resend_email/",
ResendVerifyEmail.as_view(),
name="account_email_verification_resent",
),
re_path(
r"^account-confirm-email/",
VerifyEmail.as_view(),
name="account_email_verification_sent",
),
re_path(
r"^account-confirm-email/(?P<key>[-:\w]+)/$",
VerifyEmail.as_view(),
name="account_confirm_email",
),
path(
"reset_password/",
include("django_rest_passwordreset.urls", namespace="password_reset"),
),
]