Exemplo n.º 1
0
from django.urls import path
from django.conf.urls import url
from django.views.generic import View

from apps.organization.views import OrgListView, AddAskView, DetailHomeView, DetailTeacherView, DetailCourseView, DetailDescView, TeacherListView, TeacherDetailView


urlpatterns = [
    url('^org_list/$', OrgListView.as_view(), name='org_list'),  # 课程机构列表页
    url('^add_ask/$', AddAskView.as_view(), name='add_ask'),  # 课程咨询
    url('^home/(?P<org_id>\d+)$', DetailHomeView.as_view(), name='home'),  # 课程机构首页
    url('^course/(?P<org_id>\d+)$', DetailCourseView.as_view(), name='course'),  # 课程机构课程页
    url('^teacher/(?P<org_id>\d+)$', DetailTeacherView.as_view(), name='teacher'),  # 课程机构讲师页
    url('^desc/(?P<org_id>\d+)$', DetailDescView.as_view(), name='desc'),  # 课程机构介绍页
    url(r'^teacher_list$', TeacherListView.as_view(), name='teacher_list'),  # 授课教师列表页显示
    url(r'^teacher_detail/(?P<teacher_id>\d+)$', TeacherDetailView.as_view(), name='teacher_detail'),  # 授课教师详情页显示
]

Exemplo n.º 2
0
from django.urls import re_path

from apps.organization.views import OrgView, AddUserAskView, OrgHomeView, OrgCourseView, OrgDescView, OrgTeacherView, \
    TeacherListView, TeacherDetailView
from apps.organization.views import AddFavView

__author__ = 'hzy'
__date__ = '2020/2/8 11:23'

app_name = 'organization'
urlpatterns = [
    url(r'^list/$', OrgView.as_view(), name='org_list'),
    url(r'^add_ask/$', AddUserAskView.as_view(), name='add_ask'),
    re_path('home/(?P<org_id>\d+)/$', OrgHomeView.as_view(), name="org_home"),
    re_path('course/(?P<org_id>\d+)/$',
            OrgCourseView.as_view(),
            name="org_course"),
    re_path('desc/(?P<org_id>\d+)/$', OrgDescView.as_view(), name="org_desc"),
    re_path('org_teacher/(?P<org_id>\d+)/$',
            OrgTeacherView.as_view(),
            name="org_teacher"),

    #机构收藏
    url('add_fav/$', AddFavView.as_view(), name="add_fav"),
    #讲师列表页
    url('teacher/list/$', TeacherListView.as_view(), name="teacher_list"),
    #讲师详情页
    re_path('teacher/detail/(?P<teacher_id>\d+)/$',
            TeacherDetailView.as_view(),
            name="teacher_detail"),
]
Exemplo n.º 3
0
from django.urls import path, include, re_path
from organization.views import OrgView, AddUserAskView
from apps.organization.views import OrgHomeView, OrgCourseView, OrgDescView, OrgTeacherView, AddFavView, TeacherListView, TeacherDetailView

from django.views.static import serve
from guoyang.settings import MEDIA_ROOT

app_name = "organization"

urlpatterns = [
    path('org_list/', OrgView.as_view(), name='org_list'),
    path('add_ask/', AddUserAskView.as_view(), name='add_ask'),
    re_path('home/(?P<org_id>\\d*)/$', OrgHomeView.as_view(), name="org_home"),
    re_path('course/(?P<org_id>\d+)/',
            OrgCourseView.as_view(),
            name="org_course"),
    re_path('desc/(?P<org_id>\d+)/', OrgDescView.as_view(), name="org_desc"),
    re_path('teacher/(?P<org_id>\d+)/',
            OrgTeacherView.as_view(),
            name="org_teacher"),
    path('add_fav/', AddFavView.as_view(), name="add_fav"),
    # 讲师列表
    re_path('teacher/list/', TeacherListView.as_view(), name="teacher_list"),
    # 讲师详情
    re_path('teacher/detail/(?P<teacher_id>\d+)/',
            TeacherDetailView.as_view(),
            name="teacher_detail"),
]
Exemplo n.º 4
0
from django.urls import path, re_path

from apps.organization.views import OrgView, AddUserAskView, OrgHomeView, OrgCourseView, OrgDescView, OrgTeacherView, AddFavView, TeacherListView, TeacherDetailView

app_name = 'organization'

urlpatterns = [
    path('list/', OrgView.as_view(), name='org_list'),
    path('addask/', AddUserAskView.as_view(), name='add_ask'),
    re_path('home/(?P<org_id>\d+)/', OrgHomeView.as_view(), name='org_home'),
    re_path('course/(?P<org_id>\d+)/',
            OrgCourseView.as_view(),
            name='org_course'),
    re_path('desc/(?P<org_id>\d+)/', OrgDescView.as_view(), name='org_desc'),
    re_path('org_teacher/(?P<org_id>\d+)/',
            OrgTeacherView.as_view(),
            name='org_teacher'),
    path('teacher/list/', TeacherListView.as_view(), name='teacher_list'),
    re_path('teacher/detail/(?P<teacher_id>\d+)/',
            TeacherDetailView.as_view(),
            name='teacher_detail'),
    path('add_fav/', AddFavView.as_view(), name='add_fav'),
]
Exemplo n.º 5
0
from django.urls import path, re_path



from apps.organization.views import OrgView,AddUserAskView,OrgHomeView,OrgCourseView,\
    OrgDescView,OrgTeacherView,AddFavView,TeacherListView,TeacherDetailView

app_name = "organization"

urlpatterns = [
    path('list/', OrgView.as_view(), name='org_list'),  # 课程列表
    re_path('home/(?P<org_id>\d+)/', OrgHomeView.as_view(),
            name="org_home"),  # 机构首页
    re_path('course/(?P<org_id>\d+)/',
            OrgCourseView.as_view(),
            name="org_course"),  # 机构课程
    re_path('desc/(?P<org_id>\d+)/', OrgDescView.as_view(),
            name="org_desc"),  # 机构介绍
    re_path('org_teacher/(?P<org_id>\d+)/',
            OrgTeacherView.as_view(),
            name="org_teacher"),  #机构讲师
    path('add_fav/', AddFavView.as_view(), name="add_fav"),  # 机构收藏
    path('add_ask/', AddUserAskView.as_view(), name="add_ask"),  # 添加用户咨询
    path('teacher/list/', TeacherListView.as_view(),
         name="teacher_list"),  # 讲师列表
    re_path('teacher/detail/(?P<teacher_id>\d+)/',
            TeacherDetailView.as_view(),
            name="teacher_detail"),  # 讲师详情
]
Exemplo n.º 6
0
       Date : 2018-06-18
    Project : eduonline
   FileName : orgurl.py
Description : 
-------------------------------------------------------------
"""
from django.conf.urls import url

from apps.organization.views import OrgListView, OrgHomeView, OrgCourseView, OrgDescView, OrgTeacherView, \
    TeacherListView, TeacherDetailView

# app_name = 'org'

urlpatterns = [
    url(r'^org-list/$', OrgListView.as_view(), name='orglist'),
    url(r'org-home/(?P<org_id>\d+)/$', OrgHomeView.as_view(), name='orghome'),
    url(r'org-course/(?P<org_id>\d+)/$',
        OrgCourseView.as_view(),
        name='orgcourse'),
    url(r'org-desc/(?P<org_id>\d+)/$', OrgDescView.as_view(), name='orgdesc'),
    url(r'org-teacher/(?P<org_id>\d+)/$',
        OrgTeacherView.as_view(),
        name='orgteacher'),

    # 授课教师
    url(r'^teacher-list/$', TeacherListView.as_view(), name='teacherlist'),
    url(r'^teacher-detail/(?P<teacher_id>\d+)/$',
        TeacherDetailView.as_view(),
        name='teacherdetail'),
]
Exemplo n.º 7
0
# -*- coding: utf-8 -*-
# @Time       :   2021-05-03 12:21
# @Author     :   XrazYang
# @File       :   urls.py
# @Project    :   emooc

from django.urls import path
from django.conf.urls import url
from apps.organization.views import OrgView, AddAskView, OrgHomeView, OrgTeacherView, OrgCourseView, OrgDescView, \
    TeacherListView, TeacherDetailView

urlpatterns = [
    # path('org_list/', OrgView.as_view(), name='org_list'),
    url(r'^list/$', OrgView.as_view(), name='list'),
    url(r'^add_ask/$', AddAskView.as_view(), name='add_ask'),
    url(r'^(?P<org_id>\d+)/$', OrgHomeView.as_view(), name='org_home'),
    url(r'^(?P<org_id>\d+)/teacher/$', OrgTeacherView.as_view(), name='org_teacher'),
    url(r'^(?P<org_id>\d+)/course/$', OrgCourseView.as_view(), name='org_course'),
    url(r'^(?P<org_id>\d+)/desc/$', OrgDescView.as_view(), name='org_desc'),

    url(r'^teachers/$', TeacherListView.as_view(), name='teachers'),
    url(r'^teachers/(?P<teacher_id>\d+)/$', TeacherDetailView.as_view(), name='teacher_detail'),
    # path('<int:org_id>/', OrgHomeView.as_view(), name='org_home'),
]