摘要: 短信注册接口 # 前端传入的 {mobile:1234,code:1234,password:1234}# 新增--》User表中插入数据,username唯一,干脆手机号就是用户名 user/urls.py from rest_framework.routers import DefaultRou 阅读全文
posted @ 2022-02-24 21:51 甜甜de微笑 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 一、 发送短信接口 user/views.py #django的缓存 直接用就可以了 默认缓存到内存中from django.core.cache import cacheclass UserView(ViewSet): @action(methods=['GET'], detail=False, 阅读全文
posted @ 2022-02-24 19:17 甜甜de微笑 阅读(117) 评论(0) 推荐(0) 编辑