On Thursday, February 17, 2011 02:40:20 am Daniel Hilton wrote:
> On 17 February 2011 10:34, galago <prog...@gmail.com> wrote:
> > I run my sever on localhost (manage.py runserver).
> > Is there any way to display all queries in console or somewhere else?
> 
> Yes, if you install dcramer's devserver, which is a straight
> replacement for the runserver command.
> 
> More info and install guide here:
> https://github.com/dcramer/django-devserver
> 
> Or using pip:
>  pip install django-devserver
> 
> HTH
> Dan
> 
> > --
> > 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.

alternatively you can do:
In [8]: import django.db as djdb

In [9]: djdb.connection.queries 
Out[9]: []


This is with django 1.2.4, but a quick glance at the svn trunk code tells me 
this hasn't gone away.

Mike
-- 
  Parting is such sweet sorrow. -William Shakespeare

-- 
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