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

浙公网安备 33010602011771号