You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
from django . urls import path
from . import views
app_name = " oauth " # zwz: 命名空间,方便模板和视图中反向解析
urlpatterns = [
# zwz: 授权回调处理
path ( r ' oauth/authorize ' , views . authorize ) ,
# zwz: 邮箱绑定页面
path ( r ' oauth/requireemail/<<<<int:oauthid>.html ' ,
views . RequireEmailView . as_view ( ) ,
name = ' require_email ' ) ,
# zwz: 邮箱验证链接( 修复sign参数格式)
path ( r ' oauth/emailconfirm/<<<<int:id>/<<str:sign>.html ' ,
views . emailconfirm ,
name = ' email_confirm ' ) ,
# zwz: 绑定成功页面
path ( r ' oauth/bindsuccess/<<<<int:oauthid>.html ' ,
views . bindsuccess ,
name = ' bindsuccess ' ) ,
# zwz: 第三方登录入口
path ( r ' oauth/oauthlogin ' , views . oauthlogin , name = ' oauthlogin ' )
]