mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2024-12-25 19:02:27 +00:00
23 lines
1.2 KiB
Python
23 lines
1.2 KiB
Python
from django.urls import path
|
|
|
|
from .views import MyAccountDetailView, ResetAdminView, SignupView, UserDetailView, UserImpersonateView, \
|
|
UserResendValidationEmailView, UserUpdateView, UserUploadPhotoAuthorizationView, UserValidateView, \
|
|
UserValidationEmailSentView
|
|
|
|
app_name = "registration"
|
|
|
|
urlpatterns = [
|
|
path("signup/", SignupView.as_view(), name="signup"),
|
|
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'),
|
|
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"),
|
|
path("user/<int:pk>/upload-photo-authorization/", UserUploadPhotoAuthorizationView.as_view(),
|
|
name="upload_user_photo_authorization"),
|
|
path("user/<int:pk>/impersonate/", UserImpersonateView.as_view(), name="user_impersonate"),
|
|
path("reset-admin/", ResetAdminView.as_view(), name="reset_admin"),
|
|
]
|