site_tps/users/urls.py
2018-02-28 15:06:55 +01:00

37 lines
711 B
Python

from django.urls import path
from .views import (
CreateUser,
CreateUserProfile,
CreateSchool,
EditSchool,
DeleteSchool,
)
app_name = 'users'
urlpatterns = [
path(
'user/new',
CreateUser.as_view(),
name='new-user'
),
path(
'user/<int:pk>/set_school',
CreateUserProfile.as_view(),
name='create-userprofile'
),
path(
'school/new',
CreateSchool.as_view(),
name='new-school'
),
path(
'school/<int:pk>/edit',
EditSchool.as_view(),
name='edit-school'
),
path(
'school/<int:pk>/delete',
DeleteSchool.as_view(),
name='delete-school'
),
]