Django development server messages - what do they mean?

旧街凉风 提交于 2019-12-07 21:16:54

问题


If I run a Django development server and view my application in a browser, I get messages like this:

[08/Jan/2011 18:12:45] "GET / HTTP/1.1" 200 2714

[08/Jan/2011 18:12:45] "GET /static/style.css" 200 2714

[08/Jan/2011 18:12:45] "GET /content.html" 200 269

...

What does the last number on each line mean? (I know that the number one before last is standard HTTP status message, but don't know what the following number represents)


回答1:


It's the number of bytes sent, see django/core/servers/basehttp.py:

self.request_handler.log_request(self.status.split(' ',1)[0], self.bytes_sent)


来源:https://stackoverflow.com/questions/4635140/django-development-server-messages-what-do-they-mean

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!