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'
from django.contrib.auth.views import LoginView, LogoutView from django.urls import path from accounts.views import register_view, UserDetailView, UserListView 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('change/', UserListView.as_view(), name='user_list') ] app_name = 'accounts'
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' ), ]
from django.urls import path from django.contrib.auth.views import LoginView, LogoutView from accounts.views import register_view, UserDetailView, UserListView, CarCreateView, CarListView, MarkCreateView, \ MarkListView app_name = 'accounts' urlpatterns = [ path('login/', LoginView.as_view(), name='login'), path('logout/', LogoutView.as_view(), name='logout'), path('create/', register_view, name='user_create'), path('detail/<int:pk>/', UserDetailView.as_view(), name='user_detail'), path('list/user/', UserListView.as_view(), name='user_list'), path('list/car/', CarListView.as_view(), name='car_list'), path('car/add/', CarCreateView.as_view(), name='car_add'), path('mark/add/', MarkCreateView.as_view(), name='mark_add'), path('list/mark/', MarkListView.as_view(), name='mark_list'), ]
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'
from django.urls import path from accounts.views import LoginView, LogoutView, UserCreateView, UserListView, UserUpdateView urlpatterns = [ path('login/', LoginView.as_view(), name='login'), path('logout/', LogoutView.as_view(), name='logout'), path('user/add/', UserCreateView.as_view(), name='user-add'), path('user/list/', UserListView.as_view(), name='user-list'), path('user/update/<pk>', UserUpdateView.as_view(), name="user-update"), ]
from django.urls import path from accounts.views import UserCreateView, UserListView, UserDetailedView, UserUpdateView, UserDeleteView, generate_csv app_name = 'accounts' urlpatterns = [ path('create_user/', UserCreateView.as_view(), name="create_user"), path('user_list/', UserListView.as_view(), name="user_list"), path('users/<pk>/', UserDetailedView.as_view(), name="user_detail"), path('update/<pk>/', UserUpdateView.as_view(), name="user_update"), path('delete/<pk>/', UserDeleteView.as_view(), name="user_delete"), path('user_list/generate_csv/', generate_csv, name="generate_csv") ]
from django.urls import path from accounts.views import login_view, logout_view, 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='detail'), path('profile/<pk>/edit/', UserChangeView.as_view(), name='user_update'), path('profile/<pk>/change-password/', UserChangePasswordView.as_view(), name='user_change_password'), path('profiles/', UserListView.as_view(), name='users') ] app_name = 'accounts'
user_detail_view, user_update_admin_view, ) app_name = 'branches' urlpatterns = [ path('', BranchListView.as_view(), name='branch_list'), path('create/', BranchCreateView.as_view(), name='branch_create'), path('<str:branch_slug>/', BranchDetailView.as_view(), name='branch_detail'), path('<str:branch_slug>/edit/', BranchUpdateView.as_view(), name='branch_update'), path('<str:branch_slug>/delete/', branch_delete_view, name='branch_delete'), path('<str:branch_slug>/users/', UserListView.as_view(), name='user_list'), path('<str:branch_slug>/users/bulk_create/', user_bulk_create_view_admin, name='user_bulk_create'), path('<str:branch_slug>/users/<str:username>/', user_detail_view, name='user_detail'), path('<str:branch_slug>/users/<str:username>/delete/', user_delete_view, name='user_delete'), path('<str:branch_slug>/users/<str:username>/edit', user_update_admin_view, name='user_update'), ]
from django.conf import settings from django.conf.urls.static import static from django.urls import path from accounts.views import RegisterView, UserDetailView, UserListView, UserChangeView, UserPasswordChangeView from django.contrib.auth.views import LoginView, LogoutView urlpatterns = [ path('accounts/login/', LoginView.as_view(redirect_authenticated_user=True), name='login'), path('accounts/logout/', LogoutView.as_view(), name='logout'), path('accounts/create/', RegisterView.as_view(), name='create'), path('<int:pk>/', UserDetailView.as_view(), name='detail'), path('accounts/users/', UserListView.as_view(), name='users-list'), path('change/', UserChangeView.as_view(), name='change'), path('password_change', UserPasswordChangeView.as_view(), name='password_change') ]
"""main URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin from django.urls import path, include from django.conf.urls.static import static from django.conf import settings from accounts.views import UserListView urlpatterns = [ path('admin/', admin.site.urls), path('accounts/', include('accounts.urls')), path('', include('webapp.urls')), path('api/', include('api.urls')), path('', UserListView.as_view(), name='index') ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin from django.urls import path from accounts.views import SignupView, LoginView, DashboardView, ProfileView, VerificationView, LogoutView,\ UserListView, EmailVerificationConfirmationLinkView, ResendVerificationToken app_name = 'accounts' urlpatterns = [ path('signup/', SignupView.as_view(), name='signup'), path('login/', LoginView.as_view(), name='login'), path('logout/', LogoutView.as_view(), name='logout'), path('confirm/<token>/<id>', VerificationView.as_view(), name='email_confirmation'), path('dashboard/', DashboardView.as_view(), name='dashboard'), path('profile/', ProfileView.as_view(), name='profile'), path('user_list/<data>', UserListView.as_view(), name='profile'), path('email-verification-confirmation/', EmailVerificationConfirmationLinkView.as_view(), name="email_verification_confirmation"), path('resendverification/<email>', ResendVerificationToken.as_view(), name='resendverification'), ]
Activate.as_view(), name='activate'), re_path(r'^my-jobs/$', login_required(MyJobsView.as_view()), name='my_jobs'), re_path(r'^profile/$', login_required(UserProfileView.as_view()), name='profile'), re_path(r'^profile/(?P<slug>[-\w]+)/$', login_required(UserDetailView.as_view()), name='profile_detail'), re_path(r'^profile/(?P<slug>[-\w]+)/update/$', login_required(UserUpdateView.as_view()), name='profile_update'), re_path(r'^user/list/$', login_required(UserListView.as_view()), name='user_list'), re_path(r'^skill/(?P<pk>\d+)/$', login_required(SkillDetailView.as_view()), name="skill_detail"), re_path(r'^skill/(?P<pk>\d+)/update/$', login_required(SkillUpdateView.as_view()), name="skill_update"), re_path(r'^experience/add/$', login_required(ExperienceView.as_view()), name="experience_add"), re_path(r'^experience/(?P<pk>\d+)/$', login_required(ExperienceDetailView.as_view()), name="experience_detail"), re_path(r'^experience/(?P<pk>\d+)/update/$', login_required(ExperienceUpdateView.as_view()),
from django.urls import path 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('<int:pk>/', UserDetailView.as_view(), name='detail'), path('list/', UserListView.as_view(), name='list'), path('<int:pk>/update/', UserChangeView.as_view(), name='change'), path('<int:pk>/password_change', UserPasswordChangeView.as_view(), name='password_change'), ]
from django.conf.urls import url from accounts.views import IndexView, UserListView, UserDetailView, UserAddView urlpatterns = [ url(r'^$', IndexView.as_view(), name='index'), url(r'^users/$', UserListView.as_view(), name='user_list'), url(r'^users/add/$', UserAddView.as_view(), name='user_add'), url(r'^users/(?P<pk>\d+)/$', UserDetailView.as_view(), name='user_detail'), ]
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'