摘要: 1.1 oauth/urls.py 中添加路由 urlpatterns = [ path('weibo/binduser/', views.OauthWeiboBindUser.as_view()), # /oauth/weibo/callback/ ] 1.2 oauth/views.py 中添加 阅读全文
posted @ 2020-10-09 19:48 洋洋洋ax 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 1.vue 微博回填空页面 注:微博回调空页面为: http://127.0.0.1:8888/oauth/callback/ 1.1 页面路径 components\oauth.vue <template> <div> <div v-show='visiable'> 绑定用户 用户名: <inpu 阅读全文
posted @ 2020-10-09 19:45 洋洋洋ax 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 1.1 oauth/urls.py 中添加路由 urlpatterns = [ path('weibo/callback/', views.OauthWeiboCallback.as_view()), # /oauth/weibo/callback/ ] 1.2 oauth/views.py 中添加 阅读全文
posted @ 2020-10-09 19:40 洋洋洋ax 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 1.在Vue页面加载时动态发送请求获取微博授权url 1.1 在 components\common\lab_header.vue 中写oauth动态获取微 博授权URL // 获取微博登录地址 oauth() { // 从后端获取 微博登录地址 oauth_post().then((resp) = 阅读全文
posted @ 2020-10-09 19:34 洋洋洋ax 阅读(470) 评论(0) 推荐(0) 编辑
摘要: from rest_framework.permissions import AllowAny from rest_framework.response import Response from rest_framework.views import APIView from urllib.pars 阅读全文
posted @ 2020-10-09 19:26 洋洋洋ax 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1.注册账号 注册新浪微博账号 进入首页。创建网站接入的应用 新浪微博开放平台:https://open.weibo.com/ 基本信息页面: https://open.weibo.com/apps/3516473472/info/advanced 2.接口文档 查看接口文档 https://ope 阅读全文
posted @ 2020-10-09 19:13 洋洋洋ax 阅读(680) 评论(0) 推荐(0) 编辑
摘要: https://api.weibo.com/oauth2/authorize? client_id=4122644977 &response_type=code &state=study& forcelogin=true& '''redirect_uri=https%3A%2F%2Fstudy.16 阅读全文
posted @ 2020-10-09 19:02 洋洋洋ax 阅读(426) 评论(0) 推荐(0) 编辑
摘要: create user root@'%' identified by '1'; create user root@'%' identified by '1'; flush privileges; grant all on *.* to 'root'@'%'; 阅读全文
posted @ 2020-10-09 07:44 洋洋洋ax 阅读(356) 评论(0) 推荐(0) 编辑

载入天数...载入时分秒...