from django.urls import path, re_path from .views import ( LiveLessonsView, LiveLessonEditView, LiveLessonsDetailView, SchoolView, SchoolSchedulesPrintView, ) urlpatterns = [ path('', SchoolView.as_view(), name='school'), path('schedules/print', SchoolSchedulesPrintView.as_view(), name='school_schedules-print'), path('lessons/', LiveLessonsView.as_view(), name='lessons'), path('lessons/create', LiveLessonEditView.as_view(), name='lessons-create'), path('lessons//edit', LiveLessonEditView.as_view(), name='lessons-edit'), path('lessons//', LiveLessonsDetailView.as_view(), name='lesson-detail-id'), re_path(r'(?P\d+\-\d+\-\d+)', LiveLessonsDetailView.as_view(), name='lesson-detail'), ]