摘要: 目录 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实例 阅读全文
posted @ 2020-11-05 10:31 啦-啦啦 阅读(263) 评论(0) 推荐(0) 编辑
摘要: .Celery介绍 https://www.cnblogs.com/xiaonq/p/11166235.html#i1 1.1 celery应用举例 Celery 是一个 基于python开发的 分布式异步消息任务队列 ,通过它可以轻松的实现任务的异步处 理,如果你的业务场景中需要用到异步任务,就可 阅读全文
posted @ 2020-11-04 16:50 啦-啦啦 阅读(84) 评论(2) 推荐(0) 编辑
摘要: Invalid HTTP_HOST header: '192.168.56.100:8888'. You may need to add '192.168.56.100' to ALLOWED_HOSTS. 无效的HTTP_主机头:“192.168.56.100:8888”。您可能需要将“192.1 阅读全文
posted @ 2020-11-04 16:47 啦-啦啦 阅读(502) 评论(0) 推荐(0) 编辑
摘要: 1.注册荣联云账号 1.1注册账号 1.2 登录即可看到开发者账号信息 1.3 添加测试账号 2.使用容联云发送代码测试 '''1. 安装容联云sdk''' pip install ronglian_sms_sdk 免费测试文档地址:https://doc.yuntongxun.com/p/5a53 阅读全文
posted @ 2020-11-04 16:45 啦-啦啦 阅读(173) 评论(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/set 阅读全文
posted @ 2020-11-04 16:43 啦-啦啦 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 编写注册接口 1.user/urls.py 中添加路由 1.1 user/urls.py 中添加路由 urlpatterns = [ path('register/', views.RegisterView.as_view()), # 注册视图, /user/register/ ] 1.2 user 阅读全文
posted @ 2020-11-04 16:42 啦-啦啦 阅读(60) 评论(0) 推荐(0) 编辑
摘要: jwt安装配置 1.登录接口 2.刷新接口 3.自定义返回格式 1.JWT安装配置 1.1 安装JWT pip install djangorestframework-jwt==1.11.0 1.2 syl/settings.py 配置jwt载荷中的有效期设置 jwt载荷中的有效期设置 JWT_AU 阅读全文
posted @ 2020-11-02 19:43 啦-啦啦 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1.COOKIE使用和优缺点 https://www.cnblogs.com/xiaonq/p/11094480.html 1.1 cookie原理: 用户名+密码 cookie是保存在用户浏览器端,用户名和密码等明文信息 1.2 session使用原理 session是存储在服务器端的一段字符串, 阅读全文
posted @ 2020-11-02 19:41 啦-啦啦 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1.图书管理系统后端接口 books/models.py 中设置表 class Book(models.Model): btitle=models.CharField(max_length=32) bpub_date=models.DateField() bread=models.IntegerFi 阅读全文
posted @ 2020-10-30 20:46 啦-啦啦 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 在http/apis.js/添加后端请求路由 /* eslint-disable */ import from 'shelljs' import{get,post,put,del} from './index' //用户登录 export const login = (params, headers 阅读全文
posted @ 2020-10-30 20:42 啦-啦啦 阅读(306) 评论(0) 推荐(0) 编辑