AttributeError: 'Token' object has no attribute 'test' The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error. To switch between the interactive traceback and the plaintext one, you can click on the "Traceback" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side. You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:
时间: 2024-04-04 22:32:24 浏览: 392
debug程序,应用程序发生异常
It seems like there is an AttributeError happening in your WSGI application. The error message is indicating that there is no attribute called "test" on an object of type "Token". To troubleshoot this, you should try to identify where the "Token" object is being used in your code and see if there is any code trying to access a "test" attribute on it. It's possible that you may have misspelled the attribute name or that the attribute doesn't actually exist on the object. Once you identify the root cause of the error, you can fix it by correcting the attribute name or adding the missing attribute to the object.
阅读全文