File "/Library/Python/2.7/site-packages/web/wsgi.py", line 59, in runwsgi
return httpserver.runsimple(func, server_addr)
File "/Library/Python/2.7/site-packages/web/httpserver.py", line 157, in runsimple
server.start()
return httpserver.runsimple(func, server_addr)
File "/Library/Python/2.7/site-packages/web/httpserver.py", line 157, in runsimple
server.start()
2016-12-26
File "/Library/Python/2.7/site-packages/web/application.py", line 313, in run
return wsgi.runwsgi(self.wsgifunc(*middleware))
return wsgi.runwsgi(self.wsgifunc(*middleware))
2016-12-26
如果地址填写localhost:8080就报下面的错误:
Error: Parse error on line 1:
{'HTTP_COOKIE': 'Pych
-^
Expecting 'STRING', '}'
如果地址填写127.0.0.1:8080就报下面的错误:
Error: Parse error on line 1:
{'SERVER_SOFTWARE': '
-^
Expecting 'STRING', '}'
为什么啊?
Error: Parse error on line 1:
{'HTTP_COOKIE': 'Pych
-^
Expecting 'STRING', '}'
如果地址填写127.0.0.1:8080就报下面的错误:
Error: Parse error on line 1:
{'SERVER_SOFTWARE': '
-^
Expecting 'STRING', '}'
为什么啊?
无法正常返回header信息,报错如下:
<class 'AttributeError'> at /blog/123
'NoneType' object has no attribute 'name'
<class 'AttributeError'> at /blog/123
'NoneType' object has no attribute 'name'