2018-01-31 09:15:51 +00:00
|
|
|
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-01-31 10:53:37 +00:00
|
|
|
)
|
2018-01-31 09:15:51 +00:00
|
|
|
|
|
|
|
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'
|
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'
|
|
|
|
),
|
2018-01-31 09:15:51 +00:00
|
|
|
]
|