摘要: 七、用户登录与手机注册 1、drf的token 在INSTALLED_APPS中注册: 然后迁移数据库,会生成一张表authtoken_token,存放用户的token信息: 配置token的url: 然后现在测试发起post请求登录,我们使用postman工具来发起请求: drf返回的token值 阅读全文
posted @ 2018-11-26 22:46 Sweltering 阅读(477) 评论(0) 推荐(0) 编辑