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.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, 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, CourseCommentsView, 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+)/lessons/$', CourseLessonView.as_view(), name="lessons"), url(r'^(?P<course_id>\d+)/comments/$', CourseCommentsView.as_view(), name="comments"), url(r'^(?P<course_id>\d+)/video/(?P<video_id>\d+)$', CourseVideoView.as_view(), name="video"), ]