|
|
|
|
@ -1,4 +1,4 @@ |
|
|
|
|
from django.urls import path, include |
|
|
|
|
from django.urls import path, re_path |
|
|
|
|
|
|
|
|
|
from .views import ( |
|
|
|
|
LiveLessonsView, LiveLessonEditView, |
|
|
|
|
@ -12,6 +12,6 @@ urlpatterns = [ |
|
|
|
|
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'), |
|
|
|
|
path('<str:lesson_date>', LiveLessonsDetailView.as_view(), name='lesson-detail'), |
|
|
|
|
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'), |
|
|
|
|
] |
|
|
|
|
|