2020-09-22 10:27:03 +00:00
|
|
|
from django.urls import path
|
|
|
|
|
2020-10-19 14:08:42 +00:00
|
|
|
from .views import MyAccountDetailView, ResetAdminView, SignupView, UserDetailView, UserImpersonateView, \
|
2020-12-11 13:06:08 +00:00
|
|
|
UserListView, UserResendValidationEmailView, UserUpdateView, UserUploadPhotoAuthorizationView, UserValidateView, \
|
2020-10-19 14:08:42 +00:00
|
|
|
UserValidationEmailSentView
|
2020-09-22 10:27:03 +00:00
|
|
|
|
|
|
|
app_name = "registration"
|
|
|
|
|
|
|
|
urlpatterns = [
|
2020-09-22 18:41:42 +00:00
|
|
|
path("signup/", SignupView.as_view(), name="signup"),
|
2020-09-22 17:37:37 +00:00
|
|
|
path('validate_email/sent/', UserValidationEmailSentView.as_view(), name='email_validation_sent'),
|
|
|
|
path('validate_email/resend/<int:pk>/', UserResendValidationEmailView.as_view(),
|
|
|
|
name='email_validation_resend'),
|
|
|
|
path('validate_email/<uidb64>/<token>/', UserValidateView.as_view(), name='email_validation'),
|
2020-09-24 16:39:55 +00:00
|
|
|
path("user/", MyAccountDetailView.as_view(), name="my_account_detail"),
|
|
|
|
path("user/<int:pk>/", UserDetailView.as_view(), name="user_detail"),
|
|
|
|
path("user/<int:pk>/update/", UserUpdateView.as_view(), name="update_user"),
|
2020-09-24 20:40:10 +00:00
|
|
|
path("user/<int:pk>/upload-photo-authorization/", UserUploadPhotoAuthorizationView.as_view(),
|
|
|
|
name="upload_user_photo_authorization"),
|
2020-10-19 14:08:42 +00:00
|
|
|
path("user/<int:pk>/impersonate/", UserImpersonateView.as_view(), name="user_impersonate"),
|
2020-12-11 13:06:08 +00:00
|
|
|
path("user/list/", UserListView.as_view(), name="user_list"),
|
2020-10-19 14:08:42 +00:00
|
|
|
path("reset-admin/", ResetAdminView.as_view(), name="reset_admin"),
|
2020-09-22 10:27:03 +00:00
|
|
|
]
|