from django.urls import path, re_path from .views import ( LiveLessonsView, LiveLessonEditView, LiveLessonsDetailView, SchoolView, SchoolSchedulesPrintView, DrawingCampView, DrawingCampLessonsView, FreeLessonsView) 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//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'), path('camp/', DrawingCampView.as_view(), name='drawing-camp'), path('camp/lessons/', DrawingCampLessonsView.as_view(), name='camp-lessons'), path('camp/lessons//edit', LiveLessonEditView.as_view(), name='camp-lessons-edit', kwargs={'is_camp': True}), re_path(r'^camp/(?P\d+\-\d+\-\d+)', LiveLessonsDetailView.as_view(), name='camp-lesson-detail', kwargs={'is_camp': True}), path('free/', FreeLessonsView.as_view(), name='free-lessons'), ]