示例#1
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"),
]
示例#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
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'),
    # 修改邮箱验证码
    re_path(r'^change_email/$', ChangeEmailView.as_view(),
            name='change_email'),
]
from django.conf.urls import url
from django.views.generic import TemplateView
from django.contrib.auth.decorators import login_required

from users.views import UserInfoView, UploadImageView, ChangePwdView, ChangeMobileView
from users.views import MyMessageView, MyFavOrgView, MyFavTeacherView, MyFavCourseView

urlpatterns = [
    url(r'^info/$', UserInfoView.as_view(), name="info"),
    url(r'^image/upload/$', UploadImageView.as_view(), name="image"),
    url(r'^update/pwd/$', ChangePwdView.as_view(), name="update_pwd"),
    url(r'^update/mobile/$', ChangeMobileView.as_view(), name="update_mobile"),
    url(r'^mycourse/$',
        login_required(
            TemplateView.as_view(template_name="usercenter-mycourse.html"),
            login_url="/login/"), {"current_page": "mycourse"},
        name="mycourse"),
    url(r'^myfavorg/$', MyFavOrgView.as_view(), name="myfavorg"),
    url(r'^myfav_teacher/$', MyFavTeacherView.as_view(),
        name="myfav_teachers"),
    url(r'^myfav_course/$', MyFavCourseView.as_view(), name="myfav_course"),
    url(r'^messages/$', MyMessageView.as_view(), name="messages"),
]
示例#5
0
#!/usr/bin/env python3
#-*- coding: utf-8 -*-
from users.views import UserInfoView, UpdateImageView, UpdatePWDView, SendEmailView, UpdateEmailView, UserCourseView, \
    MyMessageView
from users.views import FavCourseView, FavOrgView, FavTeacherView
__author__ = 'huang'
__time__ = '2018/3/17 16:14'

from django.urls import path, re_path
app_name = 'users'

urlpatterns = [
    # 用户详情
    path('info/', UserInfoView.as_view(), name='user_info'),
    # 更新用户头像
    path('update/image/', UpdateImageView.as_view(), name='update_image'),
    # 更新用户密码
    path('update/password/', UpdatePWDView.as_view(), name='update_pwd'),
    # 发送更改邮箱的验证码
    path('send_email_code/', SendEmailView.as_view(), name='send_email_code'),
    # 重设邮箱
    path('update_email/', UpdateEmailView.as_view(), name="update_email"),
    # 用户课程列表
    path('courses/', UserCourseView.as_view(), name='user_course'),
    # 用户消息页
    path('message/', MyMessageView.as_view(), name='user_massage'),
    # 用户收藏的各类
    path('fav_course/', FavCourseView.as_view(), name='fav_course'),
    path('fav_org/', FavOrgView.as_view(), name='fav_org'),
    path('fav_teacher/', FavTeacherView.as_view(), name='fav_teacher'),
]
示例#6
0
文件: urls.py 项目: m6ttl/ew_git
__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"),

    # 我收藏的课程
    path('myfav/course/', MyFavCourseView.as_view(), name="myfav_course"),

    # 我收藏的课程
    path('my_message/', MyMessageView.as_view(), name="my_message"),
]
示例#7
0
from django.urls import re_path, path
from django.views.generic import TemplateView
from django.contrib.auth.decorators import login_required
from users.views import UserInfoView, UploadImageView, ChangePwdView, ChangeMobileView, \
    MyFavOrgView, MyFavTeahcerView, MyFavCourseView, MyMessageView

urlpatterns = [
    path("info/", UserInfoView.as_view(), name="info"),
    path("image/upload/", UploadImageView.as_view(), name="image"),
    path("update/pwd/", ChangePwdView.as_view(), name="upload_pwd"),
    path("update/mobile/", ChangeMobileView.as_view(), name="upload_mobile"),
    path("mycourse/",
         login_required(
             TemplateView.as_view(template_name="usercenter-mycourse.html"),
             login_url="/login/"), {"current_page": "mycourse"},
         name="mycourse"),
    path("myfavorg/", MyFavOrgView.as_view(), name="myfavorg"),
    path("myfavteacher/", MyFavTeahcerView.as_view(), name="myfavteacher"),
    path("myfavcourse/", MyFavCourseView.as_view(), name="myfavcourse"),
    path("mymessages/", MyMessageView.as_view(), name="mymessages"),
]
示例#8
0
# -*- coding:utf-8 -*-
from django.conf.urls import url, include

from users.views import UserInfoView, UploadImageView, UpdatePwdView, SendEmailCodeView, UpdateEmailView, MyCourseView, MyFavOrgView
from users.views import 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'),
    # 我收藏的教师
    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'),
]
示例#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
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"),

]
示例#11
0
from django.views.generic import TemplateView
from users.views import LoginView
from reposityory.views import ReposityoryView, JobDetailView, ArtcleDetailView, ProjectDetailView
from users.views import MyMessageView

urlpatterns = [
    url(r'^xadmin/', xadmin.site.urls),

    # 配置login登录
    url(r'^login/$', LoginView.as_view(), name="login"),

    #主页面
    url(r'^study/$', ReposityoryView.as_view(), name='study'),

    #招聘详情页面
    url(r'^jobdetail/(\d+)', JobDetailView.as_view(), name='jobdetail'),

    #文章的详情页面
    url(r'^artcledetail/(\d+)',
        ArtcleDetailView.as_view(),
        name='artcledetail'),

    #开源项目详情页面
    url(r'^projectdetail/(\d+)',
        ProjectDetailView.as_view(),
        name='projectdetail'),

    #个人中心
    url(r'^main/$', MyMessageView.as_view(), name='main'),
]
示例#12
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")
]
示例#13
0
# , UpdatePwdView

from users.views import MyCourseView, MyFavOrgView, MyFavCourseView, MyFavTeacherView, 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'^my_course/', MyCourseView.as_view(), name="my_course"),
    # ----------我收藏的机构--------------
    url(r'^fav/org/', MyFavOrgView.as_view(), name="fav_org"),
    # ----------收藏的课程--------------------
    url(r'^fav/course/', MyFavCourseView.as_view(), name="fav_course"),
    # -----------收藏的讲师-----------------------
    url(r'^fav/teacher/', MyFavTeacherView.as_view(), name="fav_teacher"),
    # -----------我的消息-----------------------
    url(r'^my/message/', MyMessageView.as_view(), name="my_message")
]
示例#14
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'),
]
示例#15
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'),
]