Пример #1
0
    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'),

    #我收藏的授课讲师
    url(r'^myfav/teacher/$', MyFavTeacherView.as_view(), name='myfav_teacher'),

    #我收藏的课程
    url(r'^myfav/course/$', MyFavCourseView.as_view(), name='myfav_course'),

    #我的消息
    url(r'^mymessage/$', MymessageView.as_view(), name='mymessage'),
]
Пример #2
0
    #查看个人信息
    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( 'mymessage/', MyMessageView.as_view(), name='mymessage' ),
]
Пример #3
0
from django.urls import path

from users.views import RegisterView, LoginView, LogoutView, UserInfoView, UpdateEmailView, SendEmailCodeView, \
    UpdatePwdView, ForgetPwdView, ModifyPwdView, MyCourseView, MyFavOrgView \
    , MyFavTeacherView, MyFavCourseView, UserMessageView

app_name = "users"
urlpatterns = [
    path('info/', UserInfoView.as_view(), name='user_info'),
    path('register/', RegisterView.as_view(), name='register'),
    path('login/', LoginView.as_view(), name='login'),
    path('logout/', LogoutView.as_view(), name="logout"),
    path('info/', UserInfoView.as_view(), name="user_info"),
    path('update_email/', UpdateEmailView.as_view(), name="update_email"),
    path('sendemail_code/', SendEmailCodeView.as_view(),
         name="sendemail_code"),
    path('update/pwd/', UpdatePwdView.as_view(), name="update_pwd"),
    path('forget_pwd/', ForgetPwdView.as_view(), name="forget_pwd"),
    path('modify_pwd/', ModifyPwdView.as_view(), name="modify_pwd"),
    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('message/', UserMessageView.as_view(), name="message"),
]
Пример #4
0
urlpatterns = [
    # 用户信息
    url(r'^info/$', UserInfoView.as_view(), name="user_info"),
    # 用户头像上传
    url(r'^image/upload/$', UploadImageView.as_view(), name="image_upload"),
    # 个人中心修改密码
    url(r'^update/pwd/$', ModifyPwdView.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'^my_course/$', MyCourseView.as_view(), name="my_course"),
    # 我收藏的机构
    url(r'^myfav/org/$', MyFavOrgView.as_view(), name="myfav_org"),
    # 我收藏的课程
    url(r'^myfav/course/$', MyFavCourseView.as_view(), name="myfav_course"),
    # 我收藏的教师
    url(r'^myfav/teacher/$', MyFavTeacherView.as_view(), name="myfav_teacher"),
    # 我的消息
    url(r'^mymessage/$', MyMessageView.as_view(), name="mymessage"),

    # url(r'^detl/(?P<course_id>\d+)/$', CourseDetlView.as_view(), name="course_detl"),
    # url(r'^info/(?P<course_id>\d+)/$', CourseInfoView.as_view(), name="course_info"),
    # url(r'^comment/(?P<course_id>\d+)/$', CourseCommentView.as_view(), name="course_comment"),
    # url(r'^add_comment/$', CourseAddCommentView.as_view(), name="course_add_comment"),
]
Пример #5
0
from django.urls import path, include, re_path
from users.views import UserinfoView, UpdatePwdView, UploadImageView, SendEmailCodeView, UpdateEmailView, MyCourseView, MyFavOrgView
from .views import MyFavCourseView, MyFavTeacherView, MyMessageView
from users.views import LoginUnsafeView
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"),
    re_path('^login/', LoginUnsafeView.as_view(), name='login'),
]
Пример #6
0
from django.urls import re_path
from users.views import UserInfoView, UploadImageView, ChangePwdView
from users.views import SendChangeEmailView, ChangeEmailView, MyCourseView
from users.views import MyOrgCollectionView, MyTeacherCollectionView, MyCourseCollectionView, MyMessageView

urlpatterns = [
    re_path(r'^center_info/$', UserInfoView.as_view(), name='center_info'),
    re_path(r'^my_course/$', MyCourseView.as_view(), name='my_course'),

    # 我的收藏
    re_path(r'^my_collection/orgs/$',
            MyOrgCollectionView.as_view(),
            name='collections_orgs'),
    re_path(r'^my_collection/teachers/$',
            MyTeacherCollectionView.as_view(),
            name='collections_teachers'),
    re_path(r'^my_collection/courses/$',
            MyCourseCollectionView.as_view(),
            name='collections_courses'),
    # 我的消息
    re_path(r'^my_message/$', MyMessageView.as_view(), name='my_message'),
    # 上传头像
    re_path(r'^image_upload/$', UploadImageView.as_view(),
            name='image_upload'),

    # 修改密码
    re_path(r'^change_pwd/$', ChangePwdView.as_view(), name='change_pwd'),

    # 发送修改邮箱验证码
    re_path(r'^send_email/$', SendChangeEmailView.as_view(),
            name='send_email'),
Пример #7
0
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"),

]
Пример #8
0
from users.views import UserinfoView, UploadImageView, UpdatePwdView, SendEmailCodeView, UpdateEmailView, MyCourseView, \
    MyFavOrgView, MyFavTeacherView, MyFavCourseView, MymessageView

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

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('mymessage/$', MymessageView.as_view(), name="mymessage"),
]
Пример #9
0
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"),

    # 我收藏的课程
    url(r"^myfav/course/$", MyFavCourseView.as_view(), name="myfav_course"),

    # 我收藏的课程
    url(r"^mymessage/$", MyMessageView.as_view(), name="mymessage"),
]
Пример #10
0
    re_path(r'^reset/$', ResetUserView.as_view(), name="reset_user"),
    re_path(r'^usercenter/$', UserCenterView.as_view(), name="usercenter"),
    re_path(r'^usercenter/image/upload/$',
            UploadImageView.as_view(),
            name="upload_image"),
    re_path(r'^usercenter/password/update/$',
            UpdatePasswordView.as_view(),
            name="update_password"),
    re_path(r'^usercenter/email_pin/send/$',
            EmailPinView.as_view(),
            name="email_pin"),
    re_path(r'^usercenter/email/update/$',
            UpdateEmailView.as_view(),
            name="update_email"),
    re_path(r'^usercenter/my_course/$',
            MyCourseView.as_view(),
            name="my_course"),
    re_path(r'^usercenter/favorite/course/$',
            MyFavoriteCourseView.as_view(),
            name="my_fav_course"),
    re_path(r'^usercenter/favorite/teacher/$',
            MyFavoriteTeacherView.as_view(),
            name="my_fav_teacher"),
    re_path(r'^usercenter/favorite/organization/$',
            MyFavoriteOrganizationView.as_view(),
            name="my_fav_organization"),
    re_path(r'^usercenter/my_message/$',
            MyMessageView.as_view(),
            name="my_message")
]
Пример #11
0
# _*_ encoding:utf-8 _*_
from django.conf.urls import url
from users.views import LoginView,LogoutView,RegisterView,ActiveUserView,IndexView\
    ,ForgetPWView,FindPWCordView,UserInfoView,NickNameView,WorkNameView,UploadImageView,MyCourseView,\
    DeleteMyCourseView,MyFavCouresView,MyFavTeacherView,MyPhoneView
__author__ = 'YZF'
__date__ = '2018/3/14,16:26'
urlpatterns = [
    url(r'^login/', LoginView.as_view(), name='login'),
    url(r'^register/', RegisterView.as_view(), name='register'),
    # url(r'forget/(?P<email>.*)*/',ForgetPWView.as_view(),name='forget'),
    url(r'^forget/', ForgetPWView.as_view(), name='forget'),
    url(r'^logout/', LogoutView.as_view(), name='logout'),
    url(r'^forget_cord/', FindPWCordView.as_view(), name='forgetcord'),
    # 激活用户url
    url('^active/(?P<active_code>.*)/',
        ActiveUserView.as_view(),
        name="user_active"),
    url('^info/', UserInfoView.as_view(), name="user_info"),
    url('^nickname/', NickNameView.as_view(), name="info_nickname"),
    url('^phone/', MyPhoneView.as_view(), name="info_phone"),
    url('^workname/', WorkNameView.as_view(), name="info_workname"),
    url(r'^mycourses/', MyCourseView.as_view(), name='info_courses'),
    url(r'^favteacher/', MyFavTeacherView.as_view(), name='fav_teacher'),
    url(r'^myfav/', MyFavCouresView.as_view(), name='info_myfav'),
    url('^delete/(?P<course_id>.*)/',
        DeleteMyCourseView.as_view(),
        name="course_delete"),
    url(r'^uploadoimg/', UploadImageView.as_view(), name='image_upload'),
]
Пример #12
0
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'),
    # 用户个人中心我的消息
    url(r"^mymessage/$", MyMessageView.as_view(), name='mymessage'),
]
Пример #13
0
#!/usr/bin/python
# -*- coding:utf-8 -*-
from django.urls import path, include, re_path

from users.views import UserListView, UploadImageView, UserUpdateModify, SendEMailView, UpdateEmailView, MyCourseView, \
    MyFavOrgView, MyTeacherView, MyFavCourseView, MyMessageView

urlpatterns = [
    path('info/', UserListView.as_view()),
    path('image/upload', UploadImageView.as_view(), name='image/upload'),
    path('upload/pwd/', UserUpdateModify.as_view(), name='upload/pwd'),
    path('sendemail_code/', SendEMailView.as_view(), name='sendemail_code'),
    path('UpdateEmailView/', UpdateEmailView.as_view(),
         name='UpdateEmailView'),
    path('MyCourseView/', MyCourseView.as_view(), name='MyCourseView'),
    path('MyFavOrgView/', MyFavOrgView.as_view(), name='MyFavOrgView'),
    path('MyTeacherView/', MyTeacherView.as_view(), name='MyTeacherView'),
    path('MyFavCourseView/', MyFavCourseView.as_view(),
         name='MyFavCourseView'),
    path('MyMessageView/', MyMessageView.as_view(), name='MyMessageView'),
]