摘要: 安装环境 pip install celery pip install redis 配置Celery 异步执行代码 tesks.py from django.core.mail import send_mail from django.conf import settings from django 阅读全文
posted @ 2020-12-24 19:54 不带R的墨菲特 阅读(127) 评论(1) 推荐(0)
摘要: 方法一 系统: 1)AllowAny:允许所有用户,校验方法直接返回True 2)IsAuthenticated:只允许登录用户 必须request.user和request.user.is_authenticated都通过 3)IsAuthenticatedOrReadOnly:游客只读,登录用户 阅读全文
posted @ 2020-12-24 19:51 不带R的墨菲特 阅读(216) 评论(0) 推荐(0)