site_tps/users/urls.py

46 lines
879 B
Python
Raw Normal View History

2018-03-08 23:53:38 +00:00
from django.urls import path, include
from . import views
app_name = 'users'
urlpatterns = [
path(
'user/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-08 23:53:38 +00:00
'user/',
include('django.contrib.auth.urls')
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
),
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
),
]