摘要:
生成微博授权URL接口 生成微博授权URL接口 1.创建apps/oauth模块进行oauth认证 '''2.1 在apps文件夹下新建应用: oauth''' cd syl/apps python ../manage.py startapp oauth # 切换到apps文件夹下执行创建命令 '' 阅读全文
摘要:
微博账号注册 新浪微博开放平台:https://open.weibo.com/ 1.注册账号 注册新浪微博账号 进入首页。创建网站接入的应用: https://open.weibo.com/ 选择立即接入,进入到创建应用页面 创建应用 基本信息页面: https://open.weibo.com/a 阅读全文
摘要:
微博三方登录原理讲解 1.微博三方登录流程 https://api.weibo.com/oauth2/authorize? client_id=4122644977 &response_type=code &state=study& forcelogin=true& redirect_uri=htt 阅读全文
摘要:
目录 1.使用celery异步发送短信 1.1在celery_task/mian.py中添加发送短信函数 1.2在verifcations/views.py中添加celery发送短信视图函数 1.3 添加路由 2.测试接口 1.使用celery异步发送短信 1.1在celery_task/mian. 阅读全文
摘要:
目录 1.celery配置与基本使用 1.1 安装celery 2.测试celery 2.1启动celery 1.celery配置与基本使用 1.1 安装celery celery_task/main.py import os from celery import Celery 定义celery实例 阅读全文