site_tps/users/urls.py

94 lines
2.1 KiB
Python
Raw Normal View History

2018-03-10 13:48:48 +00:00
from django.urls import path
2018-03-11 21:02:16 +00:00
from django.urls import reverse_lazy
2018-03-10 13:48:48 +00:00
from django.contrib.auth import views as auth_views
2018-03-08 23:53:38 +00:00
from . import views
app_name = 'users'
urlpatterns = [
path(
2018-03-10 13:48:48 +00:00
'new',
2018-03-08 23:53:38 +00:00
views.create_user,
name='new-user'
),
2018-02-28 17:11:47 +00:00
path(
2018-03-10 13:48:48 +00:00
'login',
auth_views.LoginView.as_view(template_name="edit.html"),
name='login'
),
path(
'logout',
auth_views.LogoutView.as_view(),
name='logout'
),
path(
'password_change',
auth_views.PasswordChangeView.as_view(template_name="edit.html"),
name='password-change'
),
path(
'password_change/done',
2018-03-11 21:02:16 +00:00
views.PasswordChangeDoneView.as_view(),
2018-03-10 13:48:48 +00:00
name='password-change-done'
),
2018-03-11 21:02:16 +00:00
path(
'reset',
views.PasswordResetView.as_view(),
name='password-reset'
),
2018-03-10 13:48:48 +00:00
path(
'reset/<uidb64>/<token>/',
2018-03-11 21:02:16 +00:00
auth_views.PasswordResetConfirmView.as_view(template_name="edit.html", success_url=reverse_lazy('users:password-reset-done')),
2018-03-10 13:48:48 +00:00
name='password-reset-confirm'
),
path(
'reset/done/',
2018-03-11 21:02:16 +00:00
views.PasswordResetCompleteView.as_view(),
2018-03-10 13:48:48 +00:00
name='password-reset-done'
2018-02-28 17:11:47 +00:00
),
2018-01-31 10:53:37 +00:00
path(
'school/new',
2018-03-08 23:53:38 +00:00
views.create_school,
2018-01-31 10:53:37 +00:00
name='new-school'
),
2018-02-28 20:25:44 +00:00
path(
'school/<int:pk>',
2018-03-08 23:53:38 +00:00
views.school,
name='school',
),
2018-03-01 23:23:41 +00:00
path(
2018-03-08 23:53:38 +00:00
'school/<int:pk>/edit_phone',
views.edit_phone,
name='edit-school-phone'
2018-03-01 23:23:41 +00:00
),
path(
'school/<int:pk>/edit_name',
views.edit_name,
name='edit-school-name'
),
2018-01-31 12:01:04 +00:00
path(
2018-03-08 23:53:38 +00:00
'school/<int:pk>/edit_mail',
views.edit_mail,
name='edit-school-mail'
2018-03-02 08:33:37 +00:00
),
path(
2018-03-08 23:53:38 +00:00
'school/<int:pk>/jury_1',
views.edit_jury_1,
name='edit-jury-1'
2018-01-31 12:01:04 +00:00
),
2018-02-28 14:06:55 +00:00
path(
2018-03-08 23:53:38 +00:00
'school/<int:pk>/jury_2',
views.edit_jury_2,
name='edit-jury-2'
2018-02-28 14:06:55 +00:00
),
2018-03-10 13:48:48 +00:00
path(
'school/<int:pk>/edit_admin',
views.edit_admin,
name='edit-admin'
),
path(
'school/<int:pk>/validate',
views.validate,
name='validate',
)
]