上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: 1.注册账号 注册新浪微博账号 进入首页。创建网站接入的应用: https://open.weibo.com/ 选择立即接入,进入到创建应用页面 创建应用 基本信息页面: https://open.weibo.com/apps/3516473472/info/advanced 高级信息页面 2.接口 阅读全文
posted @ 2020-10-09 11:23 王彬。 阅读(280) 评论(0) 推荐(0)
摘要: 1.微博三方登录流程 https://api.weibo.com/oauth2/authorize?client_id=4122644977&response_type=code &state=study& forcelogin=true& redirect_uri=https%3A%2F%2Fst 阅读全文
posted @ 2020-10-09 11:03 王彬。 阅读(211) 评论(0) 推荐(0)
摘要: 1.1在celery_task/mian.py中添加发送短信函数 # celery项目中的所有导包地址, 都是以CELERY_BASE_DIR为基准设定. # 执行celery命令时, 也需要进入CELERY_BASE_DIR目录执行. CELERY_BASE_DIR = os.path.dirna 阅读全文
posted @ 2020-10-09 07:33 王彬。 阅读(125) 评论(0) 推荐(0)
摘要: 1.vue发送短信逻辑 前端函数如下,js方法代码无需更改,前端代码逻辑在components\common\lab_header.vue 只需要修改components\axios_api\http.js中调用的后端地址 // axios.defaults.baseURL = "http://12 阅读全文
posted @ 2020-10-08 20:54 王彬。 阅读(269) 评论(0) 推荐(0)
摘要: 1.pipeline原理 redis基本语法:https://www.cnblogs.com/xiaonq/p/7919111.html redis四篇:https://www.cnblogs.com/xiaonq/category/1544586.htm 1.1 redis发送数据原理 Redis 阅读全文
posted @ 2020-10-08 11:26 王彬。 阅读(106) 评论(0) 推荐(0)
摘要: 1.celery配置与基本使用 1.1 安装celery pip install celery @ https://github.com/celery/celery/tarball/master 1.2 新建celery/main.py配置celery # celery_task/main.py i 阅读全文
posted @ 2020-10-07 20:38 王彬。 阅读(118) 评论(0) 推荐(0)
摘要: 1.Celery介绍 1.1 celery应用举例 Celery 是一个 基于python开发的分布式异步消息任务队列,通过它可以轻松的实现任务的异步处理,如果你的业务场景中需要用到异步任务,就可以考虑使用celery 你想对100台机器执行一条批量命令,可能会花很长时间 ,但你不想让你的程序等着结 阅读全文
posted @ 2020-10-07 19:09 王彬。 阅读(144) 评论(0) 推荐(0)
摘要: 1.注册容联云账号 1.1注册账号 https://www.yuntongxun.com/user/login 1.2登录即可看到开发者账号信息 1.3 添加测试账号 2.使用容联云发送代码测试 '''1. 安装容联云sdk''' pip install ronglian_sms_sdk # 免费测 阅读全文
posted @ 2020-10-07 18:52 王彬。 阅读(142) 评论(0) 推荐(0)
摘要: 1.django缓存设置 django的六种缓存(mysql+redis) :https://www.cnblogs.com/xiaonq/p/7978402.html#i6 1.1安装Django缓存模块 pip install django-redis==4.12.1 1.2 syl/setti 阅读全文
posted @ 2020-10-06 21:49 王彬。 阅读(157) 评论(0) 推荐(0)
摘要: 1.编写注册接口 1.1 user/urls.py中添加路由 urlpatterns = [ path('register/', views.RegisterView.as_view()), # 注册视图, /user/register/ ] 1.2 user/views.py中写注册视图函数 cl 阅读全文
posted @ 2020-10-05 21:22 王彬。 阅读(96) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 下一页