Beispiel #1
0
from django.urls import path
from django.contrib.auth.views import LoginView, LogoutView
from accounts.views import register_view, UserDetailView, UserListView, UserChangeView, UserPasswordUpdateView

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('<int:pk>/profile', UserDetailView.as_view(), name='profile'),
    path('profile/update', UserChangeView.as_view(), name='profile-update'),
    path('profile/password_update',
         UserPasswordUpdateView.as_view(),
         name='password-update'),
    path('users', UserListView.as_view(), name='users')
    # path('logout', logout_view, name='logout' ),
    # path('login', login_view , name='login' ),
]
Beispiel #2
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'
Beispiel #3
0
from accounts.views import login_view, logout_view, register_view, user_activate_view, UserDetailView, UserChangeView, \
    UserChangePasswordView, UserListView
from django.urls import path
urlpatterns = [
    path('login/', login_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/<int:pk>/', UserDetailView.as_view(), name='user_detail'),
    path('users/', UserListView.as_view(), name='user_list'),
    path('profile/<int:pk>/edit/',
         UserChangeView.as_view(),
         name='user_update'),
    path('profile/<int:pk>/change-password/',
         UserChangePasswordView.as_view(),
         name='user_change_password')
]

app_name = 'accounts'
Beispiel #4
0
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')
]
Beispiel #5
0
from django.urls import path
from django.contrib.auth.views import LoginView, LogoutView
from accounts.views import register_view, UserDetailView, UserChangeView, UserPasswordChangeView

app_name = 'accounts'

urlpatterns = [
    path('accounts/login', LoginView.as_view(), name='login'),
    path('accounts/logout', LogoutView.as_view(), name='logout'),
    path('register/', register_view, name='register'),
    path('<int:pk>/', UserDetailView.as_view(), name='detail'),
    path('change/', UserChangeView.as_view(), name='change'),
    path('password_change/',
         UserPasswordChangeView.as_view(),
         name='password_change')
]
Beispiel #6
0
from django.urls import path

from django.contrib.auth.views import LoginView, LogoutView

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('create/', register_view, name='register'),
    path('user/<int:pk>/detail/', UserDetailView.as_view(),
         name='user_detail'),
    path('user/<int:pk>/update/', UserChangeView.as_view(),
         name='user_update'),
    path('user/<int:pk>/change-password/',
         UserChangePasswordView.as_view(),
         name='user_change_password')
]

app_name = 'accounts'
Beispiel #7
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'
Beispiel #8
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'
Beispiel #9
0
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')
]