Esempio n. 1
0
File: urls.py Progetto: vlctt/YDX
# _*_ encoding:utf-8 _*_
from django.conf.urls import url
from courses.views import CourseProgessView, SearchView, FightDetailView, CourseListView, CourseDetailView, AddFavoriteView, VideoPlayView, CommentsView, AddCommentsView
__author__ = 'YZF'
__date__ = '2018/3/26,9:09'
urlpatterns = [
    url(r'^list', CourseListView.as_view(), name="courser_list"),
    url(r'^detail/(?P<course_id>\d+)/',
        CourseDetailView.as_view(),
        name='course_detail'),
    url(r'^fightdetail/(?P<course_id>\d+)/',
        FightDetailView.as_view(),
        name='fight_detail'),
    url(r'^addfav/', AddFavoriteView.as_view(), name="addfav_course"),
    url(r'^video/(?P<video_id>\d+)/', VideoPlayView.as_view(), name="video"),
    url(r'^progess/', CourseProgessView.as_view(), name="progess"),
    url(r'^comments/(?P<course_id>\d+)/',
        CommentsView.as_view(),
        name="comments"),
    url(r'^addcomments/', AddCommentsView.as_view(), name="addcomments"),
    url(r'^search/', SearchView.as_view(), name="search"),
]
Esempio n. 2
0
from django.urls import path, re_path

from courses.views import CourseListView, CourseDetailView, CourseInfoView, CommentsView, AddCommentsView, VideoPlayView

app_name = "course"
urlpatterns = [
    # 课程列表url
    path('list/', CourseListView.as_view(), name="list"),
    # 课程详情页
    re_path('detail/(?P<course_id>\d+)/',
            CourseDetailView.as_view(),
            name="course_detail"),
    # 课程章节信息页
    re_path('info/(?P<course_id>\d+)/',
            CourseInfoView.as_view(),
            name="course_info"),

    # 课程章节信息页
    re_path('comments/(?P<course_id>\d+)/',
            CommentsView.as_view(),
            name="course_comments"),

    # 添加课程评论,已经把参数放到post当中了
    path('add_comment/', AddCommentsView.as_view(), name="add_comment"),

    # 课程视频播放页
    re_path('video/(?P<video_id>\d+)/',
            VideoPlayView.as_view(),
            name="video_play"),
]
Esempio n. 3
0
# _*_ coding:utf-8 _*_
from django.conf.urls import url, include
from courses.views import CourseListView, CourseDetailView, CourseInfoView, CourseCommentsView, AddCommentsView, \
    VideoPlayView

urlpatterns = [
    url(r'^list/$', CourseListView.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'^comments/(?P<course_id>\d+)/$',
        CourseCommentsView.as_view(),
        name="course_comments"),

    #     添加课程评论
    url(r'^add_comment/$', AddCommentsView.as_view(), name="add_comment"),

    #     视频播放
    url(r'^video/(?P<video_id>\d+)/$',
        VideoPlayView.as_view(),
        name="video_play"),
]
Esempio n. 4
0
# coding: utf-8
from django.conf.urls import url, include

from courses.views import CourseListView, CourseDetailView, CourseInfoView, CommentsView, AddCommentsView, VideoPlayView

urlpatterns = [
    url(r'^list/$', CourseListView.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_comments"),  # 课程评论页
    url(r'^add_comment/$', AddCommentsView.as_view(),
        name="add_comment"),  # 添加课程评论
    url(r'^video/(?P<video_id>\d+)/$',
        VideoPlayView.as_view(),
        name='video_play'),  # 播放视频
]
Esempio n. 5
0
# encoding: utf-8
__author__ = 'mtianyan'
__date__ = '2018/1/13 0013 01:57'

# encoding: utf-8
from courses.views import CourseListView, CourseDetailView, CourseInfoView, CommentsView, AddCommentsView, VideoPlayView
from django.urls import path, re_path

app_name = "courses"
urlpatterns = [
    # 课程列表url
    path('list/', CourseListView.as_view(), name="list"),
    # 课程详情页
    re_path('detail/(?P<course_id>\d+)/', CourseDetailView.as_view(), name="course_detail"),
    # 课程章节信息页
    re_path('info/(?P<course_id>\d+)/', CourseInfoView.as_view(), name="course_info"),

# 课程章节信息页
    re_path('comments/(?P<course_id>\d+)/', CommentsView.as_view(), name="course_comments"),

    # 添加课程评论,已经把参数放到post当中了
    path('add_comment/', AddCommentsView.as_view(), name="add_comment"),

    # 课程视频播放页
    re_path('video/(?P<video_id>\d+)/', VideoPlayView.as_view(), name="video_play"),
]
Esempio n. 6
0
# encoding: utf-8
__author__ = 'ZMY'
__date__ = '2018/6/14 21:01'

from courses.views import CourseListView,CourseDetailView,CourseInfoView,CommentsView,AddCommentsView,VideoPlayView
from django.conf.urls import url

app_name = 'courses'

urlpatterns = [
    # 公开课列表
    url(r'^list/$',CourseListView.as_view(),name='course_list'),
    # 课程详情页
    url('^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'^comments/(?P<course_id>\d+)/$',CommentsView.as_view(),name='course_comments'),
    # 添加评论
    url(r'all_comment/',AddCommentsView.as_view(),name='add_comment'),
    # 课程视频播放页
    url(r'^video/(?P<video_id>\d+)/$',VideoPlayView.as_view(),name='video_play'),
]
# coding=utf-8
__author__ = 'chen'
__date__ = '2019/8/12 21:44'
from django.conf.urls import url, include
from courses.views import CourseListView, CourseDetailView, CourseInfoView, CourseCommentsView, AddCommentsView, VideoPlayView

urlpatterns = [
    # 课程机构列表页
    url(r'^list/$', CourseListView.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+)/$',
        CourseCommentsView.as_view(),
        name='course_comments'),
    # 课程评论
    url(r'^add_comment/$', AddCommentsView.as_view(), name='add_comment'),
    # 视频地址
    url(r'video/(?P<video_id>\d+)/$',
        VideoPlayView.as_view(),
        name='video_play'),
]
Esempio n. 8
0
#!/usr/bin/env python3
#-*- coding:utf-8 -*-

from courses.views import CourseListView, CourseDetailView, CourseInfoView, CommentsView, AddCommentsView, VideoPlayView
from django.urls import path, re_path

app_name = 'course'

urlpatterns = [
    path('list/', CourseListView.as_view(), name='course_list'),
    re_path('detail/(?P<course_id>\d+)/',
            CourseDetailView.as_view(),
            name='course_detail'),
    re_path('info/(?P<course_id>\d+)/',
            CourseInfoView.as_view(),
            name='course_info'),
    re_path('comment/(?P<course_id>\d+)/',
            CommentsView.as_view(),
            name='course_comments'),
    re_path('add_comment/', AddCommentsView.as_view(), name='add_comment'),
    re_path('video/(?P<video_id>\d+)/',
            VideoPlayView.as_view(),
            name='video_play')
]