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, LogoutView from accounts.views import RegisterView, UserDetailView, UserChangeView,\ UserPasswordChangeView app_name = 'accounts' urlpatterns = [ # path('login/', LoginViewSession.as_view(), name='login'), path('login/', LoginView.as_view(), name='login'), path('logout/', LogoutView.as_view(), name='logout'), path('register', RegisterView.as_view(), name='create'), path('<int:pk>/', UserDetailView.as_view(), name='detail'), # path('users/', AllUserView.as_view(), name='users'), path('<int:pk>/change/', UserChangeView.as_view(), name='change'), path('<int:pk>/password_change/', UserPasswordChangeView.as_view(), name='password_change') ]
from django.urls import path from django.contrib.auth.views import LogoutView from accounts.views import LoginView, SignUp, UserDetailView, UserUpdateView, UserDeleteView, UserPasswordChangeView, \ UserListView, UserSearchView, SearchResultsView, BanChangeView app_name = 'accounts' urlpatterns = [ path('login/', LoginView.as_view(), name='login'), path('logout/', LogoutView.as_view(), name='logout'), path('create/', SignUp.as_view(), name='create'), path('profile/<int:pk>/', UserDetailView.as_view(), name='user_detail'), path('profile/<int:pk>/update/', UserUpdateView.as_view(), name='user_update'), path('profile/<int:pk>/delete/', UserDeleteView.as_view(), name='user_delete'), path('profile/<int:pk>/change_password/', UserPasswordChangeView.as_view(), name='user_change_password'), path('profile/list/', UserListView.as_view(), name='user_list'), path('user/search/', UserSearchView.as_view(), name='user_search'), path('user/search/results/', SearchResultsView.as_view(), name='search_results'), path('users/change_ban/<int:pk>/', BanChangeView.as_view(), name="ban_change"), ]
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') ]
from django.urls import path from accounts.views import UserLogoutView, login_view, register_view, UserDetailView, UserUpdateView, \ UserPasswordChangeView, UserListView, TeamAddView, TeamRemoveView urlpatterns = [ path('login/', login_view, name='login' ), path('logout/', UserLogoutView.as_view(), name='logout'), path('register/', register_view, name='register'), path('<int:pk>/', UserDetailView.as_view(), name='user details'), path('<int:pk>/edit', UserUpdateView.as_view(), name='update user info'), path('<int:pk>/password', UserPasswordChangeView.as_view(), name='change user password'), path('users/', UserListView.as_view(), name='list users'), path('project/<int:pk>/team/add/', TeamAddView.as_view(), name='add team member'), path('project/team/remove/<int:pk>/', TeamRemoveView.as_view(), name='remove member from team') ] app_name='accounts'