Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django development server messages - what do they mean?

Tags:

django

message

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)

like image 413
Tomas Novotny Avatar asked Oct 12 '25 14:10

Tomas Novotny


1 Answers

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)
like image 187
Benjamin Wohlwend Avatar answered Oct 14 '25 05:10

Benjamin Wohlwend



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!