from django.conf.urls import url from apps.organization.views import OrgView, AddAsk from apps.courses.views import CourseListView,CourseDetailView,CourseLessonView,CourseCommentsView,VideoView urlpatterns = [ url(r'^list/$', CourseListView.as_view(), name='list'), #url(r'^detail/$', CourseDetailView.as_view(), name='detail'), 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/$', CourseCommentsView.as_view(), name='comments'), 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, CourseCommentsView, 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/$', CourseCommentsView.as_view(), name="comments"), url(r'^(?P<course_id>\d+)/video/(?P<video_id>\d+)$', VideoView.as_view(), name="video"), ]
from django.conf.urls import url from apps.courses.views import CourseView, CourseDetailView, CourseLessonView, CourseCommentsView, VideoView urlpatterns =[ url(r'^list/$', CourseView.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/$', CourseCommentsView.as_view(), name="comment"), url(r'^(?P<course_id>\d+)/video/(?P<video_id>\d+)/$', VideoView.as_view(), name="video"), ]