djangosnippets.org: Latest snippets tagged with 'time-logging'http://djangosnippets.org/tags/time-logging/2011-12-11T09:26:47.236978-06:00another request logging middleware with request time and extra info
2011-12-11T09:26:47.236978-06:00yoavhttp://djangosnippets.org/snippets/2624/<p>Simple logging middleware that captures the following:
* remote address (whether proxied or direct)
* if authenticated, then user email address
* request method (GET/POST etc)
* request full path
* response status code (200, 404 etc)
* content length
* request process time
* If DEBUG=True, also logs SQL …</p>
Freely redistributableceil time entry to nearest quarter hour
2008-11-03T15:32:55.180241-06:00rennathttp://djangosnippets.org/snippets/1163/<p>belongs in a model with datetimefields "end_time" and "start_time" (change as needed)<br />
returns float rounded to the next highest quarter hour</p>
Freely redistributable