【问题标题】:Simplejwt don't appear on importation optionsSimplejwt 不会出现在导入选项中
【发布时间】:2022-09-24 00:03:32
【问题描述】:

我已经用 pip 安装了 djangorestframework-simplejwt,所以我配置了 settings.py 文件以使用它,但是,当我尝试导入包时,它没有显示在可导入的包列表中。

\'DEFAULT_AUTHENTICATION_CLASSES\': (
        \'rest_framework.authentication.SessionAuthentication\',
        \'rest_framework.authentication.BasicAuthentication\',
        \'rest_framework_simplejwt.authentication.JWTAuthentication\', 
    ),

进口清单:

谁能帮我?

    标签: django jwt django-rest-framework-simplejwt


    【解决方案1】:

    我只是重建所有项目。现在,运行良好!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-07-29
      • 2015-11-21
      • 2014-09-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多