from django.urls import path from .views import ( CreateUser, CreateSchool, EditSchoolName, EditSchoolPhone, DeleteSchool, Login, Logout, PasswordChange, Profile, School, promote_user, degrade_user ) app_name = 'users' urlpatterns = [ path( 'user/new', CreateUser.as_view(), name='new-user' ), 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/', Profile.as_view(), name='profile', ), path( 'school/new', CreateSchool.as_view(), name='new-school' ), path( 'school/', School.as_view(), name='school' ), path( 'school//degrade/', degrade_user, name='degrade-user' ), path( 'school//promote/', promote_user, name='promote-user' ), path( 'school//edit_name', EditSchoolName.as_view(), name='edit-school-name' ), path( 'school//edit_phone', EditSchoolPhone.as_view(), name='edit-school-phone' ), path( 'school//delete', DeleteSchool.as_view(), name='delete-school' ), ]