site_tps/users/urls.py

62 lines
1.1 KiB
Python
Raw Normal View History

from django.urls import path
2018-01-31 10:53:37 +00:00
from .views import (
CreateUser,
CreateUserProfile,
CreateSchool,
2018-01-31 12:01:04 +00:00
EditSchool,
2018-02-28 14:06:55 +00:00
DeleteSchool,
2018-02-28 17:11:47 +00:00
Login,
Logout,
PasswordChange,
Profile,
2018-01-31 10:53:37 +00:00
)
app_name = 'users'
urlpatterns = [
path(
'user/new',
CreateUser.as_view(),
name='new-user'
),
2018-02-28 17:11:47 +00:00
path(
'login',
Login.as_view(),
name='login'
),
path(
'logout',
Logout.as_view(),
name='logout',
),
path(
'change_password',
PasswordChange.as_view(),
name='change-password'
),
path(
'user/<int:pk>/set_school',
CreateUserProfile.as_view(),
name='create-userprofile'
2018-01-31 10:53:37 +00:00
),
2018-02-28 17:11:47 +00:00
path(
'user/<int:pk>',
Profile.as_view(),
name='profile',
),
2018-01-31 10:53:37 +00:00
path(
'school/new',
CreateSchool.as_view(),
name='new-school'
),
2018-01-31 12:01:04 +00:00
path(
'school/<int:pk>/edit',
EditSchool.as_view(),
name='edit-school'
),
2018-02-28 14:06:55 +00:00
path(
'school/<int:pk>/delete',
DeleteSchool.as_view(),
name='delete-school'
),
]