当您使用./manage.py runserver
在localhost上启动django开发服务器并通过浏览器访问其中一个页面时,终端始终显示一个新的输出行。例如,我的终端输出看起来像这样
0 errors found
June 03, 2014 - 01:06:29
Django version 1.6.5, using settings 'testAuth.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
[03/Jun/2014 01:07:05] "GET /auth/register/ HTTP/1.1" 200 460
[03/Jun/2014 01:07:45] "GET /auth/register/ HTTP/1.1" 200 502
[03/Jun/2014 01:08:02] "GET /auth/register/ HTTP/1.1" 200 503
[03/Jun/2014 01:08:31] "GET /auth/register/ HTTP/1.1" 200 503
[03/Jun/2014 01:08:31] "GET /auth/register/ HTTP/1.1" 200 503
[03/Jun/2014 01:08:32] "GET /auth/register/ HTTP/1.1" 200 503
[03/Jun/2014 01:08:44] "GET /auth/register/ HTTP/1.1" 200 502
[03/Jun/2014 01:09:26] "GET /auth/register/ HTTP/1.1" 200 390
我想知道这些行中的最后一个数字是多少?我可以看到有一个时间戳,后跟请求类型,然后是相对URL和响应代码。其余部分是什么?
答案 0 :(得分:2)
这是响应正文中的字节数。