46 lines
1.5 KiB
Python
46 lines
1.5 KiB
Python
from django.contrib.auth import views as auth_views
|
|
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
app_name = "accounts"
|
|
|
|
urlpatterns = [
|
|
path("signup/", views.SignUpView.as_view(), name="signup"),
|
|
path("login/", views.ClientLoginView.as_view(), name="login"),
|
|
path("logout/", views.ClientLogoutView.as_view(), name="logout"),
|
|
path("profile/", views.ProfileView.as_view(), name="profile"),
|
|
path(
|
|
"password-reset/",
|
|
auth_views.PasswordResetView.as_view(
|
|
template_name="accounts/password_reset.html",
|
|
email_template_name="accounts/emails/password_reset_email.txt",
|
|
subject_template_name="accounts/emails/password_reset_subject.txt",
|
|
success_url="/accounts/password-reset/done/",
|
|
),
|
|
name="password_reset",
|
|
),
|
|
path(
|
|
"password-reset/done/",
|
|
auth_views.PasswordResetDoneView.as_view(
|
|
template_name="accounts/password_reset_done.html",
|
|
),
|
|
name="password_reset_done",
|
|
),
|
|
path(
|
|
"password-reset/<uidb64>/<token>/",
|
|
auth_views.PasswordResetConfirmView.as_view(
|
|
template_name="accounts/password_reset_confirm.html",
|
|
success_url="/accounts/password-reset/complete/",
|
|
),
|
|
name="password_reset_confirm",
|
|
),
|
|
path(
|
|
"password-reset/complete/",
|
|
auth_views.PasswordResetCompleteView.as_view(
|
|
template_name="accounts/password_reset_complete.html",
|
|
),
|
|
name="password_reset_complete",
|
|
),
|
|
]
|