plateforme-corres2math/apps/registration/urls.py

23 lines
1.2 KiB
Python
Raw Normal View History

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, \
UserResendValidationEmailView, UserUpdateView, UserUploadPhotoAuthorizationView, UserValidateView, \
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"),
path("reset-admin/", ResetAdminView.as_view(), name="reset_admin"),
2020-09-22 10:27:03 +00:00
]