Esempio n. 1
0
from django.urls import path
from accounts.views import login_view, logout_view, register_view, UserDetailView, UserChangeView, \
    UserChangePasswordView, UserListView

urlpatterns = [
    path('login/', login_view, name='login'),
    path('logout/', logout_view, name='logout'),
    path('register/', register_view, name='register'),
    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('profile/list', UserListView.as_view(), name='user_list')
]

app_name = 'accounts'
Esempio n. 2
0
from django.urls import path
from accounts.views import register_view, UserDetailView, \
    UserChangeView, UserChangePasswordView, UserListView
from django.contrib.auth.views import LoginView, LogoutView

urlpatterns = [
    path('login/', LoginView.as_view(), name='login'),
    path('logout/', LogoutView.as_view(), name='logout'),
    path('register/', register_view, name='register'),
    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('list/', UserListView.as_view(), name='user_list'),
]


app_name = 'accounts'
Esempio n. 3
0
from django.urls import path
from accounts.views import login_view, logout_view, register_view, UserDetailView, UserChangeView,\
    UserChangePasswordView, UserIndexView

urlpatterns = [
    path('login/', login_view, name='login'),
    path('logout/', logout_view, name='logout'),
    path('register/', register_view, name='register'),
    path('<int:pk>/', UserDetailView.as_view(), name='user_detail'),
    path('<int:pk>/update', UserChangeView.as_view(), name='user_update'),
    path('<int:pk>/password_change', UserChangePasswordView.as_view(), name='user_change_password'),
    path('users', UserIndexView.as_view(), name='user_index'),
]

app_name = 'accounts'
Esempio n. 4
0
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'
Esempio n. 5
0
from django.urls import path
from accounts.views import register_view, UserDetailView, UserListView, UserUpdateView, UserChangePasswordView
from django.contrib.auth.views import LoginView, LogoutView

app_name = 'accounts'

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('list/', UserListView.as_view(), name='user-list'),
    path('profile/', UserUpdateView.as_view(), name='user-update'),
    path('change_password/', UserChangePasswordView.as_view(), name='user-change-password'),
]