摘要:
1.完善注册接口 1.1 修改user/views.py中完善视图函数 # 注册接口 class RegisterView(APIView): """ 用户注册, 权限是: 匿名用户可访问 """ # 自定义权限类 permission_classes = (AllowAny,) def post( 阅读全文
摘要:
#前端函数如下,js方法代码无需更改,前端代码逻辑components\common\lab_header.vue`#只需要修改components\axios_api\http.js中调用的后端地址 // axios.defaults.baseURL = "http://127.0.0.1:800 阅读全文
摘要:
1.1 在user/urls.py中添加 urlpatterns = [ path('count/', views.RegCountView.as_view()), # 查询用户名手机号使用量的视图, /user/count/ ] 1.2 在user/views.py中添加视图函数 # 查询用户数量 阅读全文
摘要:
前端函数如下,js方法代码无需更改,前端代码逻辑在components\common\lab_header.vue 只需要修改components\axios_api\http.js中调用的后端地址 // axios.defaults.baseURL = "http://127.0.0.1:8000 阅读全文
摘要:
1.1 安装celery pip install celery @ https://github.com/celery/celery/tarball/master 1.2 新建celery/main.py配置celery # celery_task/main.py import os from ce 阅读全文
摘要:
1.1 注册账号 https://www.yuntongxun.com/user/login '''1. 安装容联云sdk''' pip install ronglian_sms_sdk # 免费测试文档地址https://doc.yuntongxun.com/p/5a531a353b8496dd0 阅读全文