from django.urls import path, include
from django.conf.urls import url
from appSix import views

app_name = 'appSix'

urlpatterns = [
    path('', views.SchoolList.as_view(), name = 'list'),
    url(r'^(?P<pk>\d+)/', views.SchoolDetailView.as_view(), name = 'detail'),
    url(r'^create/$', views.SchoolCreateView.as_view(), name = 'create'),
    url(r'^update/(?P<pk>\d+)/', views.SchoolUpdateView.as_view(), name = 'update'),
    url(r'^delete/(?P<pk>\d+)/', views.SchoolDeleteView.as_view(), name = 'delete'),
]
