Esempio n. 1
0
 path('generatepdf/', Tch.generatePdf),
 path('stusearch/', Tch.searchstu),
 path('deletework/', Tch.deletework),
 re_path(r'^favicon.ico', RedirectView.as_view(url=r'/static/favicon.ico')),
 path('competitionlist/?selected=0',
      Cpt.CompetitionList,
      name='competitionlist'),
 path('deletecpt/', Cpt.DeleteCompetition),
 path('expert/', ExpertManage.list),
 path('expert_detail/', ExpertManage.expert_detail),
 path('expert_change/', ExpertManage.change),
 path('expert_delete/', ExpertManage.delete_expert),
 path('login/', LoginView.as_view(), name='login'),
 path('logout/', LogoutView.as_view(), name='logout'),
 path('register/', RegisterView.as_view(), name='register'),
 path('update/pwd/', UpdatePwdView.as_view(), name='update_pwd'),
 path('cptinit/', Cpt.CompetitionInit),
 path('cptinit/cptformpost/', Cpt.CompetitionFormPost),
 path('cptchange/', Cpt.CompetitionChange),
 path('cptchange/cptchangepost/', Cpt.CompetitionChangePost),
 # path('expert_review/',ExpertReviewView.as_view(),name='expertReview_View'),
 path('reviewworklist/', Opt.ExpertReviewListView.as_view()),
 path('downloadZip/', Opt.DownLoadZip),
 path('downloadBatchZip/', Opt.DownloadBatchZip),
 path('judge/', Opt.Judge),
 path('submitReview/', Opt.sumbitReview),
 path('nextReviewWork/', Opt.NextReviewWork),
 path('work_list/', Opt.ExpertReviewListView.as_view()),
 path('work_review/', Opt.ExpertReviewView.as_view()),
 #re_path(r'^static/(?P<path>.*)$', serve, {"document_root":STATIC_ROOT}),
 path('check_work/', Opt.CheckWorkListView.as_view()),
Esempio n. 2
0
# @Author  : LiuShaoheng

from django.conf.urls import url

from users.views import UserInfoView, UploadImageView, SendEmailCodeView, UpdateEmailView, UpdatePwdView, MyCourseView, MyFavOrgView, MyFavTeacherView, MyFavCourseView, MyMessageView

app_name = "users"

urlpatterns = [

    # 用户信息
    url('info/', UserInfoView.as_view(), name="user_info"),
    # 用户头像上传
    url('image/upload/', UploadImageView.as_view(), name="image_upload"),
    # 用户个人中心修改密码
    url('update/pwd/', UpdatePwdView.as_view(), name="update_pwd"),
    # 专用于发送验证码的
    url('sendemail_code/', SendEmailCodeView.as_view(), name="sendemail_code"),
    url('update_email/', UpdateEmailView.as_view(), name="update_email"),
    # 用户中心我的课程
    url('mycourse/', MyCourseView.as_view(), name="mycourse"),
    # 我收藏的课程机构
    url('myfav/org/', MyFavOrgView.as_view(), name="myfav_org"),
    # 我收藏的授课讲师
    url('myfav/teacher/', MyFavTeacherView.as_view(), name="myfav_teacher"),
    # 我收藏的课程
    url('myfav/course/', MyFavCourseView.as_view(), name="myfav_course"),
    # 我的消息
    url('my_message/', MyMessageView.as_view(), name="my_message"),
]
Esempio n. 3
0
from users.views import UserInfoView, UploadImageView, UpdatePwdView
from django.conf.urls import url, include

urlpatterns = [
    url(r'^usercenter-info/$', UserInfoView.as_view(), name="usercenter-info"),

    # 用户上传头像
    url(r'^image/upload/$', UploadImageView.as_view(), name="image_upload"),
    url(r'^update/pwd/$', UpdatePwdView.as_view(), name="update_pwd"),
]
Esempio n. 4
0
# -*-coding:utf-8-*-
__author__ = 'hehonen'
__date__ = '2018/8/4 23:56'
from django.conf.urls import url, include
from users.views import UserInfoView, UploadImageView, UpdatePwdView, SendEmailCodeView, UpdateEmailView, MyCourseView
from .views import MyFavOrgView, MyFavTeacherView, MyFavCourseView, MyMessageView

urlpatterns = [
    #用户信息
    url(r'^info/$', UserInfoView.as_view(), name='user_info'),

    #用户头像上传
    url(r'^image/upload/$', UploadImageView.as_view(), name='image_upload'),

    #用户个人中心修改密码
    url(r'^update/pwd/$', UpdatePwdView.as_view(), name='update_pwd'),

    #发送邮箱验证码
    url(r'^sendemail_code/$',
        SendEmailCodeView.as_view(),
        name='sendemail_code'),

    #发送邮箱验证码
    url(r'^update_email/$', UpdateEmailView.as_view(), name='update_email'),

    #我的课程
    url(r'^mycourse/$', MyCourseView.as_view(), name='mycourse'),

    #我收藏的课程机构
    url(r'^myfav/org/$', MyFavOrgView.as_view(), name='myfav_org'),
Esempio n. 5
0
from users.views import UserInfoView, UploadImageView, SendEmailCodeView, UpdateEmailView, UpdatePwdView, MyCourseView, \
    MyFavOrgView, MyFavTeacherView, MyFavCourseView, MyMessageView

__author__ = 'mtianyan'
__date__ = '2018/1/14 0014 06:52'

from django.urls import path
app_name = "users"
urlpatterns = [
    # 用户信息
    path('info/', UserInfoView.as_view(), name="user_info"),
    # 用户头像上传
    path('image/upload/', UploadImageView.as_view(), name="image_upload"),
    # 用户个人中心修改密码
    path('update/pwd/', UpdatePwdView.as_view(), name="update_pwd"),
    # 专用于发送验证码的
    path(
        'sendemail_code/',
        SendEmailCodeView.as_view(),
        name="sendemail_code"),
    path('update_email/', UpdateEmailView.as_view(), name="update_email"),
    # 用户中心我的课程
    path('mycourse/', MyCourseView.as_view(), name="mycourse"),

    # 我收藏的课程机构
    path('myfav/org/', MyFavOrgView.as_view(), name="myfav_org"),

    # 我收藏的授课讲师
    path('myfav/teacher/', MyFavTeacherView.as_view(), name="myfav_teacher"),
Esempio n. 6
0
#-*- coding:utf-8 -*-
from django.conf.urls import url

from users.views import UserinfoView, UploadImageView, UpdatePwdView, SendMailCode, UpdateEmailView
from users.views import MyCourseView, MyFavOrgView, MyFavTeacherView, MyFavCourseView, MyMessageView

urlpatterns = [
    #用户信息
    url(r'^info/', UserinfoView.as_view(), name='user_info'),

    #用户信息
    url(r'^image/upload/$', UploadImageView.as_view(), name='image_upload'),

    #个人中心修改密码
    url(r"^update/pwd/$", UpdatePwdView.as_view(), name="update_pwd"),

    # 发送邮箱验证码
    url(r"^sendemail_code/$", SendMailCode.as_view(), name="sendemail_code"),

    # 更新邮箱
    url(r"^update_email/$", UpdateEmailView.as_view(), name="update_email"),

    # 我的课程
    url(r"^mycourse/$", MyCourseView.as_view(), name="mycourse"),

    # 我收藏的课程机构
    url(r"^myfav/org/$", MyFavOrgView.as_view(), name="myfav_org"),

    # 我收藏的授课讲师
    url(r"^myfav/teacher/$", MyFavTeacherView.as_view(), name="myfav_teacher"),
Esempio n. 7
0
# _*_ coding:utf-8 _*_
# __author__ : 'aj'
# __date__ : '2017/12/29 下午1:54'

from django.conf.urls import url, include
from users.views import UserInfoView, UploadImageView, UpdatePwdView, SendEmailCodeView, MyCourseView, MyFavOrgView, \
    MyFavTeacherView, MyMessageView, LogoutView

urlpatterns = [
    # 用户信息页面
    url(r'^info/$', UserInfoView.as_view(), name='info'),
    # 上传头像
    url(r'^image/upload', UploadImageView.as_view(), name='image_upload'),
    # 修改密码
    url(r'^update/pwd', UpdatePwdView.as_view(), name='pwd_update'),
    # 发送邮箱验证码
    url(r'^sendEmail_code', SendEmailCodeView.as_view(),
        name='sendEmail_code'),
    # 修改邮箱
    url(r'^updateEmail', SendEmailCodeView.as_view(), name='updateEmail'),
    # 我的课程
    url(r'^my_course/$', MyCourseView.as_view(), name='my_course'),
    # 我收藏的机构
    url(r'^my_fav/org/$', MyFavOrgView.as_view(), name='my_fav_org'),
    # 我收藏的讲师
    url(r'^my_fav/teacher/$',
        MyFavTeacherView.as_view(),
        name='my_fav_teacher'),
    # 我收藏的课程
    url(r'^my_fav/course/$', MyFavTeacherView.as_view(), name='my_fav_course'),
    # 我收藏的课程
@Time    : 18-11-13 上午11:22
@Author  : TX
@File    : urls.py
@Software: PyCharm
"""
from django.urls import path, re_path

from users.views import UserinfoView, UploadImageView, UpdatePwdView, SendEmailCodeView, UpdateEmailView, \
    MyCourseView, MyFavOrgView, MyFavTeacherView, MyFavCourseView, MyMessageView

app_name = 'users'

urlpatterns = [
    path('info/', UserinfoView.as_view(), name='user_info'),  # 用户信息
    path("image/upload/", UploadImageView.as_view(),
         name='image_upload'),  # 用户更改图像
    path("update/pwd/", UpdatePwdView.as_view(),
         name='update_pwd'),  # 用户个人中心修改密码
    path("sendemail_code/", SendEmailCodeView.as_view(),
         name='sendemail_code'),  # 发送邮箱修改的验证码
    path("update_email/", UpdateEmailView.as_view(),
         name='update_email'),  # 修改邮箱
    path("mycourse/", MyCourseView.as_view(), name='mycourse'),  # 我的课程
    path('myfav/org/', MyFavOrgView.as_view(), name="myfav_org"),  # 我的收藏--课程机构
    path('myfav/teacher/', MyFavTeacherView.as_view(),
         name="myfav_teacher"),  # 我的收藏--授课讲师
    path('myfav/course/', MyFavCourseView.as_view(),
         name="myfav_course"),  # 我的收藏--课程
    path('my_message/', MyMessageView.as_view(), name="my_message"),  # 我的消息
]
Esempio n. 9
0
@file: urls.py 
@time: 2018/03/12 
"""
from django.urls import path

from users.views import UserInfoView, UploadImageView, UpdatePwdView, SendEmailCodeView, UpdateEmailView, MyCourseView, MyFavOrgView, \
    MyFavTeacherView, MyFavCourseView, MyMessageView

app_name = "courses"
urlpatterns = [
    # 个人信息页
    path('info/', UserInfoView.as_view(), name="user_info"),
    # 用户头像上次
    path('image/upload/', UploadImageView.as_view(), name="image_upload"),
    # 用户密码修改
    path('update/pwd/', UpdatePwdView.as_view(), name="pwd_update"),
    # 发送邮箱验证码
    path('sendemail_code/', SendEmailCodeView.as_view(),
         name="sendemail_code"),
    # 修改邮箱
    path('update_email/', UpdateEmailView.as_view(), name="update_email"),
    # 用户中心我的课程
    path('mycourse/', MyCourseView.as_view(), name="mycourse"),
    # 我收藏的课程机构
    path('myfav/org/', MyFavOrgView.as_view(), name="myfav_org"),
    # 我收藏的授课讲师
    path('myfav/teacher/', MyFavTeacherView.as_view(), name="myfav_teacher"),
    # 我收藏的课程
    path('myfav/course/', MyFavCourseView.as_view(), name="myfav_course"),
    # 我的消息
    path('my_message/', MyMessageView.as_view(), name="my_message"),
Esempio n. 10
0
__author__ = "hudingjing"
__date__ = '2019/4/2 0:09 '

from django.conf.urls import url

from users.views import UserCenterView, UploadImageView, UpdatePwdView, SendEmailVerifyCodeView, ChangeEmailView
from users.views import MyFavTeacherView, MyFavCourseView, MyCourseView, MyFavOrgView, MyMessageView

urlpatterns = [
    #用户个人信息中心
    url(r"^info/$", UserCenterView.as_view(), name='center'),

    #用户个人中心修改头像
    url(r"^image/upload/$", UploadImageView.as_view(), name='image_upload'),
    # 用户个人中心修改密码
    url(r"^update/pwd/$", UpdatePwdView.as_view(), name='pwd_update'),
    # 用户个人中心发送邮箱验证码
    url(r"^sendemail_code/$",
        SendEmailVerifyCodeView.as_view(),
        name='send_email_verifyCode'),
    # 用户个人中心修改邮箱
    url(r"^update_email/$", ChangeEmailView.as_view(), name='change_email'),
    # 用户个人中心我的课程
    url(r"^mycourse/$", MyCourseView.as_view(), name='mycourse'),
    # 用户个人中心我的收藏机构
    url(r"^myfav/org/$", MyFavOrgView.as_view(), name='myfav_org'),
    # 用户个人中心我的收藏讲师
    url(r"^myfav/teacher/$", MyFavTeacherView.as_view(), name='myfav_teacher'),
    # 用户个人中心我的收藏课程
    url(r"^myfav/course/$", MyFavCourseView.as_view(), name='myfav_course'),
    # 用户个人中心我的消息