25 lines
459 B
Python
25 lines
459 B
Python
from django.urls import path
|
|
from .views import (
|
|
CreateUser,
|
|
CreateUserProfile,
|
|
CreateSchool,
|
|
)
|
|
|
|
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'
|
|
),
|
|
]
|