from django.conf.urls import url from django.views.decorators.csrf import csrf_exempt from apps.courses.views import CourseListView, CourseDetailView, CourseLessonView, CourseCommentView, CourseVideoView urlpatterns = [ url(r'^list/$', CourseListView.as_view(), name='list'), url(r'^(?P<course_id>\d+)/$', CourseDetailView.as_view(), name='detail'), url(r'^(?P<course_id>\d+)/lesson/$', CourseLessonView.as_view(), name='lesson'), url(r'^(?P<course_id>\d+)/comments/$', CourseCommentView.as_view(), name='comments'), url(r'^(?P<course_id>\d+)/video/(?P<video_id>\d+)$', CourseVideoView.as_view(), name='video'), ]
from django.conf.urls import url from apps.courses.views import CourseListView, CourseDetailView, CourseLessonView, CourseCommentView, VideoView urlpatterns = [ url(r'^list/$', CourseListView.as_view(), name='list'), url(r'^(?P<course_id>\d+)/$', CourseDetailView.as_view(), name='detail'), url(r'^(?P<course_id>\d+)/lesson/$', CourseLessonView.as_view(), name='lesson'), url(r'^(?P<course_id>\d+)/comment/$', CourseCommentView.as_view(), name='comment'), url(r'^(?P<course_id>\d+)/video/(?P<video_id>\d+)$', VideoView.as_view(), name='video'), ]
from django.conf.urls import url from django.urls import path from apps.courses.views import CourseListView, CourseDetailView, CourseLessonView, CourseCommentView, CourseVideoView urlpatterns = [ url(r'^list/$', CourseListView.as_view(), name="list"), path('<int:course_id>/', CourseDetailView.as_view(), name="detail"), path('<int:course_id>/lesson/', CourseLessonView.as_view(), name="lesson"), path('<int:course_id>/comment/$', CourseCommentView.as_view(), name="comment"), path('<int:course_id>/video/<int:video_id>', CourseVideoView.as_view(), name="video"), ]
from django.conf.urls import url from apps.courses.views import CourseListView, CourseDetailView, CourseLessonView, CourseCommentView, VideoView urlpatterns = [ url(r'^list/$', CourseListView.as_view(), name='list'), url(r'^(?P<course_id>\d+)/$', CourseDetailView.as_view(), name="detail"), url(r'^(?P<course_id>\d+)/lesson/$', CourseLessonView.as_view(), name="lesson"), url(r'^(?P<course_id>\d+)/comments/$', CourseCommentView.as_view(), name="comment"), url(r'^(?P<course_id>\d+)/video/(?P<video_id>\d+)$', VideoView.as_view(), name="video"), #url(r'^(?P<course_id>\d+)/video/(?P<video_id>\d+)$', VideoView.as_view(), name="video"), ]