Re: Django profiling logs (Like rails Mongrel logs) ?

2009-08-03 Thread Kedare

Thanks but I tried it a lot of time, I always found it really buggy
(it show itself for every ip and don't use INTERNAL_IPS... i don't
know why, all other modules that us INTERNAL_IPS on my website works
fine), and it don't fit very nicely on my template (at the bottom
without any interation (CSS/JS), so it's not very readable), is there
any terminal/files way to get all those informations ?
Thanks

On 4 août, 07:26, Malcolm Tredinnick  wrote:
> 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.0)
> >     Completed in 0.18700 (5 reqs/sec) | Rendering: 0.10900 (58%) | DB:
> > 0.0 (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
-~--~~~~--~~--~--~---



Re: Django profiling logs (Like rails Mongrel logs) ?

2009-08-03 Thread Malcolm Tredinnick

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.0)
> Completed in 0.18700 (5 reqs/sec) | Rendering: 0.10900 (58%) | DB:
> 0.0 (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
-~--~~~~--~~--~--~---



Django profiling logs (Like rails Mongrel logs) ?

2009-08-03 Thread Kedare

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.0)
Completed in 0.18700 (5 reqs/sec) | Rendering: 0.10900 (58%) | DB:
0.0 (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 ?

Thank you :)
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---