|
|
|
@ -53,13 +53,7 @@ urlpatterns = [ |
|
|
|
path('utils/xls-to-csv/', views.xls_to_csv, name='xls-to-csv'), |
|
|
|
path('utils/xls-to-csv/', views.xls_to_csv, name='xls-to-csv'), |
|
|
|
path('mail-test/', views.simple_form_view, name='mail-test'), |
|
|
|
path('mail-test/', views.simple_form_view, name='mail-test'), |
|
|
|
path('login/', CustomLoginView.as_view(), name='custom-login'), |
|
|
|
path('login/', CustomLoginView.as_view(), name='custom-login'), |
|
|
|
path('password_change/', |
|
|
|
path('custom_password_change/', views.custom_password_change, name='custom_password_change'), |
|
|
|
auth_views.PasswordChangeView.as_view( |
|
|
|
|
|
|
|
success_url='/profile/', # Redirect back to profile after success |
|
|
|
|
|
|
|
form_class=CustomPasswordChangeForm |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
name='password_change' |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
path('logout/', views.custom_logout, name='custom_logout'), |
|
|
|
path('logout/', views.custom_logout, name='custom_logout'), |
|
|
|
path('signup/', views.signup, name='signup'), # URL pattern for signup |
|
|
|
path('signup/', views.signup, name='signup'), # URL pattern for signup |
|
|
|
# path('profile/', views.profile, name='profile'), # URL pattern for signup |
|
|
|
# path('profile/', views.profile, name='profile'), # URL pattern for signup |
|
|
|
@ -68,7 +62,9 @@ urlpatterns = [ |
|
|
|
path('tournaments/<str:tournament_id>/unregister/', views.unregister_tournament, name='unregister_tournament'), |
|
|
|
path('tournaments/<str:tournament_id>/unregister/', views.unregister_tournament, name='unregister_tournament'), |
|
|
|
path('password_reset/', auth_views.PasswordResetView.as_view(), name='password_reset'), |
|
|
|
path('password_reset/', auth_views.PasswordResetView.as_view(), name='password_reset'), |
|
|
|
path('password_reset_done/', auth_views.PasswordResetDoneView.as_view(), name='password_reset_done'), |
|
|
|
path('password_reset_done/', auth_views.PasswordResetDoneView.as_view(), name='password_reset_done'), |
|
|
|
path('reset/done/', auth_views.PasswordResetCompleteView.as_view(), name='password_reset_complete'), |
|
|
|
path('reset/done/', |
|
|
|
|
|
|
|
views.CustomPasswordResetCompleteView.as_view(), |
|
|
|
|
|
|
|
name='password_reset_complete'), |
|
|
|
path('profile/', views.ProfileUpdateView.as_view(), name='profile'), |
|
|
|
path('profile/', views.ProfileUpdateView.as_view(), name='profile'), |
|
|
|
path('admin/tournament-import/', views.tournament_import_view, name='tournament_import'), |
|
|
|
path('admin/tournament-import/', views.tournament_import_view, name='tournament_import'), |
|
|
|
path('admin/status/', views.status_page, name='status_page'), |
|
|
|
path('admin/status/', views.status_page, name='status_page'), |
|
|
|
|