1 2 3 4
摘要: 1.完善注册接口 1.1 修改user/views.py中完善视图函数 # 注册接口 class RegisterView(APIView): """ 用户注册, 权限是: 匿名用户可访问 """ # 自定义权限类 permission_classes = (AllowAny,) def post( 阅读全文
posted @ 2020-10-08 17:15 发哥奇妙IT之旅 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1.vue检查用户名是否重复 前端函数如下,js方法代码无需更改,前端代码逻辑在components\common\lab_header.vue 只需要修改components\axios_api\http.js中调用的后端地址 // axios.defaults.baseURL = "http:/ 阅读全文
posted @ 2020-10-08 17:13 发哥奇妙IT之旅 阅读(564) 评论(0) 推荐(0) 编辑
摘要: 1.django添加检查用户名和手机号数量接口 1.1 在user/urls.py中添加 urlpatterns = [ path('count/', views.RegCountView.as_view()), # 查询用户名手机号使用量的视图, /user/count/ ] 1.2 在user/ 阅读全文
posted @ 2020-10-08 17:09 发哥奇妙IT之旅 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 1.vue发送短信逻辑 前端函数如下,js方法代码无需更改,前端代码逻辑在components\common\lab_header.vue 只需要修改components\axios_api\http.js中调用的后端地址 // axios.defaults.baseURL = "http://12 阅读全文
posted @ 2020-10-08 17:03 发哥奇妙IT之旅 阅读(124) 评论(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-08 16:50 发哥奇妙IT之旅 阅读(188) 评论(0) 推荐(0) 编辑