11 2020 档案

摘要:隐式授权模式(Implicit Grant) 授权码授权模式(Authorization code Grant) 密码模式(Resource Owner Password Credentials Grant) 客户端凭证模式(Client Credentials Grant) 1.隐式授权模式(Im 阅读全文
posted @ 2020-11-05 20:29 Daniel* 阅读(383) 评论(0) 推荐(0)
摘要:1.安装配置 1.1 下载 pip install djangorestframework-jwt 1.2配置settings.py 注册应用 INSTALLED_APPS = [ 'rest_framework_jwt', ] 1.3配置JWT验证 REST_FRAMEWORK = { 'DEFA 阅读全文
posted @ 2020-11-02 20:54 Daniel* 阅读(176) 评论(0) 推荐(0)
摘要:1.创建单表模型类 class Goods(models.Model): goods_name = models.CharField(max_length=32) goods_price = models.DecimalField(max_digits=9,decimal_places=2) goo 阅读全文
posted @ 2020-11-01 18:50 Daniel* 阅读(94) 评论(0) 推荐(0)