Log response time in Django views

Viewed 1045

In my view, I am logging to a file using logger.info(message)

The message is a string that must contain the HTTP status and how long it took to handle the request.

i can't find request-response time in HttpResponse().

What suprises me is that django.server logs the time. How did they do that?

enter image description here

1 Answers
Related