#查看个人信息 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' ), ]
# _*_ coding:utf-8 _*_ from django.conf.urls import url, include from users.views import UsercenterInfoView, ImageUploadView, UpdatePwdView, SendEmailCodeView, UpdateEmailView, \ MyCourseView, MyFavOrgView, MyFavTeacherView, MyFavCourseView, MyMessageView urlpatterns = [ url(r'^usercenter_info/$', UsercenterInfoView.as_view(), name="usercenter_info"), url(r'^image/upload/$', ImageUploadView.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/orgs/$', MyFavOrgView.as_view(), name="myfav_org"), url(r'^myfav/teachers/$', MyFavTeacherView.as_view(), name="myfav_teacher"), url(r'^myfav/courses/$', MyFavCourseView.as_view(), name="myfav_course"), # 我的消息 url(r'^mymessages/$', MyMessageView.as_view(), name="mymessages"), ]
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'), ]
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"), ]
""" from django.conf.urls import url, include from users.views import UserCenterView, UploadImageView, UpdatePwdView, SendEmailCodeView, UpdateEmailView from users.views import MyCourseView, MyFavCourseView, MyFavOrgView, myFavteacherView, MyMessageView urlpatterns = [ # 用户信息页 url(r'^info/$', UserCenterView.as_view(), name="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'^myFavcourse/$', MyFavCourseView.as_view(), name="myFavcourse"), # 我收藏的机构 url(r'^myFavorg/$', MyFavOrgView.as_view(), name="myFavorg"), # 我收藏的老湿 url(r'^myFavteacher/$', myFavteacherView.as_view(), name="myFavteacher"), # 我的消息 url(r'^mymessage/$', MyMessageView.as_view(), name="mymessage"), ]
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"), ]
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"), ]
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"), ]
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"), ]
# , 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") ]
@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"), # 我的消息 ]
#!/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'), ]