On Mon, 2009-08-03 at 22:05 -0700, Kedare wrote:
> Hello,
> Is there any wait to implement the same kind of logging that Rails
> provide, by example :
> 
>     Processing BlogController#list (for 127.0.0.1 at 2007-02-23
> 00:58:56) [GET]
>      Parameters: {"action"=>"list", "controller"=>"blog"}
>     SELECT * FROM posts ORDER BY created_on LIMIT 10
>     Rendering blog/list
>     Cached page: /blog/list.html (0.00000)
>     Completed in 0.18700 (5 reqs/sec) | Rendering: 0.10900 (58%) | DB:
> 0.00000 (0%) | 200 OK [http://localhos//blog/list]
> 
> I can't find any plugin to provide that...
> I find that kind of thing very useful to understand what can be the
> bad query or caching strategy, are Django developpers plaining to add
> a features like that ?

The django-debug-toolbar project gives you a lot of that information in
a browser-based view. Worth looking at.

One day something like the debug toolbar might be added to Django
itself, but all things that are developed as successful external
projects first. It might not be too hard to write some kind of logging
output like what you're after based on the information that
django-debug-toolbar collects.

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to