#!/usr/bin/env python3 #-*- coding:utf-8 -*- from django.urls import path, include, re_path from users.views import UserinfoView, UploadImageView, UpdatePwdView, SendEmailCodeView, UpdateEmailView from users.views import 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'),
# _*_ coding: utf-8 _*_ from users.views import UserinfoView, UploadImageView, UpdatePwdView, SendEmailCodeView, UpdateEmailView, MyCourseView, \ MyFavOrgView, MyFavTeacherView, MyFavCourseView, MymessageView __author__ = 'nestmilk' __date__ = '2019/2/15 15:19' from django.conf.urls import url, include 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'), #我收藏的课程机构
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'), ]
# -*- coding: utf-8 -*- from django.conf.urls import include, url from users.views import UserinfoView, UploadImageView, UpdatePwdView, SendEmailCodeView, UpdateEmailView, 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/$', 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"),
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"), ]