You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

urls.py 1.0KB

5 years ago
1234567891011121314151617181920
  1. # The views used below are normally mapped in django.contrib.admin.urls.py
  2. # This URLs file is used to provide a reliable view deployment for test purposes.
  3. # It is also provided as a convenience to those who want to deploy these URLs
  4. # elsewhere.
  5. from django.contrib.auth import views
  6. from django.urls import path
  7. urlpatterns = [
  8. path('login/', views.LoginView.as_view(), name='login'),
  9. path('logout/', views.LogoutView.as_view(), name='logout'),
  10. path('password_change/', views.PasswordChangeView.as_view(), name='password_change'),
  11. path('password_change/done/', views.PasswordChangeDoneView.as_view(), name='password_change_done'),
  12. path('password_reset/', views.PasswordResetView.as_view(), name='password_reset'),
  13. path('password_reset/done/', views.PasswordResetDoneView.as_view(), name='password_reset_done'),
  14. path('reset/<uidb64>/<token>/', views.PasswordResetConfirmView.as_view(), name='password_reset_confirm'),
  15. path('reset/done/', views.PasswordResetCompleteView.as_view(), name='password_reset_complete'),
  16. ]