from django.urls import path from django.contrib.auth.views import LoginView, LogoutView from accounts.views import RegisterView, UserDetailView, WatchUsersView, UserChangeView, UserPasswordChangeView app_name = 'accounts' urlpatterns = [ path('login/', LoginView.as_view(), name='login'), path('logout/', LogoutView.as_view(), name='logout'), path('create/', RegisterView.as_view(), name='create'), path('<int:pk>/', UserDetailView.as_view(), name='detail'), path('users_list/', WatchUsersView.as_view(), name='users_list'), path('<int:pk>/', UserDetailView.as_view(), name='detail'), path('<int:pk>/update/', UserChangeView.as_view(), name='user_change'), path('password-change/', UserPasswordChangeView.as_view(), name='password_change'), ]
from django.contrib.auth.views import LoginView, LogoutView from django.urls import path from accounts.views import register_view, UserDetailView, UserChangeView, UserChangePasswordView urlpatterns = [ path('login/', LoginView.as_view(), name='login'), path('logout/', LogoutView.as_view(), name='logout'), path('register', register_view, name='register'), path('profile/<int:pk>/', UserDetailView.as_view(), name='user_detail'), path('profile/edit/<int:pk>/', UserChangeView.as_view(), name='user_edit'), path('profile/edit/pass/<int:pk>', UserChangePasswordView.as_view(), name='user_edit_pass'), ] app_name = 'accounts'
from django.urls import path from accounts.views import logout_view, login_view, register_view, \ user_activate_view, UserDetailView, UserChangeView, UserChangePasswordView, UsersListView from django.contrib.auth.views import LoginView, LogoutView urlpatterns = [ path('login/', LoginView.as_view(), name='login'), path('logout/', logout_view, name='logout'), path('register/', register_view, name='register'), path('activate/<token>/', user_activate_view, name='user_activate'), path('profile/<pk>/', UserDetailView.as_view(), name='user_detail'), path('profile/<pk>/edit', UserChangeView.as_view(), name='user_update'), path('profile/<pk>/change-password/', UserChangePasswordView.as_view(), name='user_change_password'), path('users/', UsersListView.as_view(), name='users_list'), ] app_name = 'accounts'
from django.urls import path from django.contrib.auth.views import LoginView, LogoutView from accounts.views import register_view, UserDetailView, UserList, UserChangeView, UserPasswordChangeView app_name = 'accounts' urlpatterns = [ path('login/', LoginView.as_view(), name='login'), path('logout/', LogoutView.as_view(), name='logout'), path('create/', register_view, name='create'), path('<int:pk>/', UserDetailView.as_view(), name='user-detail'), path('list/', UserList.as_view(), name='user-list'), path('profile/change/', UserChangeView.as_view(), name='user-change'), path('change-password/', UserPasswordChangeView.as_view(), name='user-password-change') ]
from django.contrib import admin # from accounts.views import login_view, logout_view from django.contrib.auth.views import LoginView, LogoutView from django.urls import path, include from accounts.views import register_view, UserDetailView, UserChangeView, UserPasswordChangeView app_name = 'account' urlpatterns = [ # path('accounts/', include('django.contrib.auth.urls')), # path('accounts/login', login_view, name='login'), # path('accounts/logout/', logout_view(), name='logout') path('accounts/login', LoginView.as_view(), name='login'), path('accounts/logout/', LogoutView.as_view(), name='logout'), path('create/', register_view, name='create'), path('detail/<int:pk>', UserDetailView.as_view(), name='detail'), path('change/', UserChangeView.as_view(), name='user_change'), path('<int:pk>/password_change', UserPasswordChangeView.as_view(), name='password_change') ]
from django.urls import path from django.contrib.auth.views import LoginView, LogoutView from accounts.views import RegisterView, RegisterActivateView, UserDetailView, UserIndexView, UserChangeView, \ UserPasswordChangeView 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'), path('activate/<uuid:token>/', RegisterActivateView.as_view(), name='activate'), path('<int:pk>/', UserDetailView.as_view(), name='detail'), path('', UserIndexView.as_view(), name='user_list'), 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, include from django.contrib.auth.views import LoginView from accounts.views import RegisterView, UserDetailView, UserListView, UserChangeView, UserPasswordChangeView, \ 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('list/', UserListView.as_view(), name='list'), path( '<int:pk>/', include([ path('', UserDetailView.as_view(), name='detail'), path('update/', UserChangeView.as_view(), name='change'), path('password_change/', UserPasswordChangeView.as_view(), name='password_change'), ])), ]