Django开发服务器消息 - 它们是什么意思? [英] Django development server messages - what do they mean?

查看:120
本文介绍了Django开发服务器消息 - 它们是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我运行Django开发服务器并在浏览器中查看我的应用程序,我会收到以下消息:

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.1200 2714

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

[08 / Jan / 2011 18:12:45]GET / static / style css200 2714

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

[08 / Jan / 2011 18:12:45]GET /content.html200 269

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

...

每行的最后一个数字是什么意思?
(我知道最后一个是标准HTTP状态消息,但不知道以下数字代表什么)

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)

推荐答案

这是发送的字节数,请参阅 django / core / servers / basehttp.py

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)

这篇关于Django开发服务器消息 - 它们是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆