'NoneType' object is not subscriptable
来源:9-7 scrapy url去重原理
慕瓜9058083
2022-02-17
运行django的manage.py,然后样式没加载出来,这是其中一个报错
Traceback (most recent call last):
File “D:\Anaconda3\lib\wsgiref\handlers.py”, line 141, in run
self.handle_error()
File “D:\Anaconda3\lib\site-packages\django\core\servers\basehttp.py”, line 116, in handle_error
super().handle_error()
File “D:\Anaconda3\lib\wsgiref\handlers.py”, line 368, in handle_error
self.finish_response()
File “D:\Anaconda3\lib\wsgiref\handlers.py”, line 180, in finish_response
self.write(data)
File “D:\Anaconda3\lib\wsgiref\handlers.py”, line 274, in write
self.send_headers()
File “D:\Anaconda3\lib\wsgiref\handlers.py”, line 331, in send_headers
if not self.origin_server or self.client_is_modern():
File “D:\Anaconda3\lib\wsgiref\handlers.py”, line 344, in client_is_modern
return self.environ[‘SERVER_PROTOCOL’].upper() != 'HTTP/0.9’
TypeError: ‘NoneType’ object is not subscriptable
1回答
-
bobby
2022-02-18
这里看到有anaconda3的路径,你可以先试试自己安装python然后安装django运行试试 确定一下是否是anaconda的问题
022022-02-22
相似问题