无法运行 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 (将#修改为@)