微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

无法运行 Django 服务器

如何解决无法运行 Django 服务器

我收到此错误,无法启动服务器。请帮帮我

  def __mul__(self,other):
     if type(other)==type(3): 
      return list(self)*other
     elif type(other)==type("nan"):
      
    # raise TypeError("can't multiply sequence by non-int of type 'list'")
      def handling_none(a):
          if "nan" in[a,other]:
              return "nan"
          else:
              return a*b
      return list(map(handling_none,list(self)))      
print(list_handle_none([1,2,3]))
print(list_handle_none([1,3])*"nan")

完整的错误代码

ImportError: Could not import 'rest_framework_simplejwt.authentication.JWTAuthentication' for API setting 'DEFAULT_AUTHENTICATION_CLASSES'. ModuleNotFoundError: No module named 'rest_framework_simplejwt.utils'.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。