无法运行 Django 服务器

时间:2021-06-20 15:27:46

标签: django-rest-framework django-3.2

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

  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,2,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'.

0 个答案:

没有答案