You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
762 B
17 lines
762 B
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/<int:pk>/edit', LiveLessonEditView.as_view(), name='lessons-edit'),
|
|
path('lessons/<int:pk>/', LiveLessonsDetailView.as_view(), name='lesson-detail-id'),
|
|
re_path(r'(?P<lesson_date>\d+\-\d+\-\d+)', LiveLessonsDetailView.as_view(), name='lesson-detail'),
|
|
]
|
|
|