Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a07ff8-19d0-7820-b4d0-1353833cb7fc
21 lines
822 B
Python
21 lines
822 B
Python
from django.contrib.auth import views
|
|
from django.urls import path, reverse_lazy
|
|
|
|
from .forms import AuthenticationForm, PasswordChangeForm
|
|
|
|
app_name = 'accounts'
|
|
|
|
urlpatterns = [
|
|
path('login/', views.LoginView.as_view(
|
|
template_name='accounts/login.html', authentication_form=AuthenticationForm,
|
|
), name='login'),
|
|
path('logout/', views.LogoutView.as_view(), name='logout'),
|
|
path('password-change/', views.PasswordChangeView.as_view(
|
|
template_name='accounts/password_change.html',
|
|
form_class=PasswordChangeForm,
|
|
success_url=reverse_lazy('accounts:password_change_done'),
|
|
), name='password_change'),
|
|
path('password-change/done/', views.PasswordChangeDoneView.as_view(
|
|
template_name='accounts/password_change_done.html',
|
|
), name='password_change_done'),
|
|
]
|