摘要: 源一般用豆瓣源,腾讯与阿里源太垃圾了 pip3.8 install --user --index-url http://pypi.douban.com/simple/ djangorestframework--trusted-host pypi.douban.com pip3.8 install d 阅读全文
posted @ 2023-02-08 22:22 tengyifan 阅读(43) 评论(0) 推荐(0)
摘要: 昨日回顾 #1 认证的使用 -有些接口需要登录后才能访问 -原生djagno如何使用的认证:auth的user表,auth自带了认证 -自己登录,使用自定义的用户表 -认证类的使用步骤: -1 写一个类,继承BaseAuthentication -2 重写 authenticate,在方法中完成认证 阅读全文
posted @ 2023-02-08 21:59 tengyifan 阅读(39) 评论(0) 推荐(0)