Traceback (most recent call last):
File "/iot/extroniot/env36/lib/python3.6/site-packages/django/core/handlers/wsgi.py", line 141, in __call__
request = self.request_class(environ)
File "/iot/extroniot/env36/lib/python3.6/site-packages/django/core/handlers/wsgi.py", line 82, in __init__
self.method = environ['REQUEST_METHOD'].upper()
KeyError: 'REQUEST_METHOD'
[pid: 20398|app: 0|req: 1/1] () {16 vars in 368 bytes} [Wed Jul 31 05:13:09 2019] => generated 0 bytes in 2 msecs ( 500) 0 headers in 0 bytes (0 switches on core 0)
Traceback (most recent call last):
File "/iot/extroniot/env36/lib/python3.6/site-packages/django/core/handlers/wsgi.py", line 141, in __call__
request = self.request_class(environ)
File "/iot/extroniot/env36/lib/python3.6/site-packages/django/core/handlers/wsgi.py", line 82, in __init__
self.method = environ['REQUEST_METHOD'].upper()
KeyError: 'REQUEST_METHOD'
[pid: 20401|app: 0|req: 1/2] () {16 vars in 368 bytes} [Wed Jul 31 05:13:09 2019] => generated 0 bytes in 1 msecs ( 500) 0 headers in 0 bytes (0 switches on core 0)
Traceback (most recent call last):
File "/iot/extroniot/env36/lib/python3.6/site-packages/django/core/handlers/wsgi.py", line 141, in __call__
request = self.request_class(environ)
File "/iot/extroniot/env36/lib/python3.6/site-packages/django/core/handlers/wsgi.py", line 82, in __init__
self.method = environ['REQUEST_METHOD'].upper()
KeyError: 'REQUEST_METHOD'
[pid: 20398|app: 0|req: 2/3] () {16 vars in 368 bytes} [Wed Jul 31 05:13:09 2019] => generated 0 bytes in 0 msecs ( 500) 0 headers in 0 bytes (0 switches on core 0)
Traceback (most recent call last):
File "/iot/extroniot/env36/lib/python3.6/site-packages/django/core/handlers/wsgi.py", line 141, in __call__
request = self.request_class(environ)
File "/iot/extroniot/env36/lib/python3.6/site-packages/django/core/handlers/wsgi.py", line 82, in __init__
self.method = environ['REQUEST_METHOD'].upper()
KeyError: 'REQUEST_METHOD'
self.method = environ['REQUEST_METHOD'].upper() 的报错,在百度上找了一圈没有找到原因,具体找了一下两个网址:
https://stackoverflow.com/questions/35607350/python-3-4-3-bottle-with-cgi-environrequest-method
之前一直是运行很正常的,但是不知道为什么这次发版就不行了。
到了最后发现是不知道为啥项目跑出来虚拟空间的范围。
在外面没有相应的包。
所以:
因为没有安装好相应的包。
之前都安装到了虚拟空间里面,但是这次不知道什么原因,虚拟空间的都不管用了。
然后再外面包都给安装好了。