from django.urls import path from django.contrib.auth.views import LoginView, LogoutView from accounts.views import RegisterView, RegisterActivateView, UserDetailView, \ UserChangeView, UserPasswordChangeView, UserPasswordResetEmailView, UserPasswordResetView app_name = 'accounts' urlpatterns = [ path('login/', LoginView.as_view(), name='login'), path('logout/', LogoutView.as_view(), name='logout'), path('register/', RegisterView.as_view(), name='create_user'), path('activate/<uuid:token>/', RegisterActivateView.as_view(), name='activate'), path('<int:pk>/', UserDetailView.as_view(), name='detail'), path('<int:pk>/update/', UserChangeView.as_view(), name='change'), path('password-change/', UserPasswordChangeView.as_view(), name='password_change'), path('password-reset/', UserPasswordResetEmailView.as_view(), name='password_reset_email'), path('password-reset/<uuid:token>/', UserPasswordResetView.as_view(), name='password_reset') ]
from django.urls import path from django.contrib.auth.views import LoginView from accounts.views import RegisterView, RegisterActivateView, UserDetailView, \ UserChangeView, UserPasswordChangeView, UserPasswordResetEmailView, UserPasswordResetView, \ BasketClearLogoutView app_name = 'accounts' urlpatterns = [ path('login/', LoginView.as_view(), name='login'), path('logout/', BasketClearLogoutView.as_view(), name='logout'), path('register/', RegisterView.as_view(), name='create'), path('activate/<uuid:token>/', RegisterActivateView.as_view(), name='activate'), path('<int:pk>/', UserDetailView.as_view(), name='detail'), path('<int:pk>/update/', UserChangeView.as_view(), name='change'), path('password-change/', UserPasswordChangeView.as_view(), name='password_change'), path('password-reset/', UserPasswordResetEmailView.as_view(), name='password_reset_email'), path('password-reset/<uuid:token>/', UserPasswordResetView.as_view(), name='password_reset') ]