#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.conf.urls import url,include

from .views import CoursesListView,CourseDetailView,CourseInfoView,CommentsView,AddCommentView,VideoPlayView

urlpatterns = [
    url(r'^list/$',CoursesListView.as_view(),name='course_list'),
    url(r'^detail/(?P<course_id>\d+)/$',CourseDetailView.as_view(),name='course_detail'),
    url(r'^info/(?P<course_id>\d+)/$',CourseInfoView.as_view(),name='course_info'),
    url(r'^comment/(?P<course_id>\d+)/$',CommentsView.as_view(),name='course_comment'),
    #添加课程评论
    url(r'^add_comment/$',AddCommentView.as_view(),name='add_comment'),
    #视频播放
     url(r'^video/(?P<video_id>\d+)/$',VideoPlayView.as_view(),name='video_play'),



]
