Thursday, November 7, 2013

Re: django debugger

On Thu, Nov 7, 2013 at 11:35 PM, Andrew Farrell <armorsmith42@gmail.com> wrote:
> It is possible to use pdb (or ipdb: https://pypi.python.org/pypi/ipdb) by
> inserting a set_trace() call and then running the django dev server with
> `manage.py runserver`. For example, the following will print the number of
> database queries before and then after a function which touches the database
> and, drop you into the pdb shell. This of course causes the server to block.


But I want that when my application runs, I can see all the queries
running from my browser, like apache log file is there. Is it possible
to view the sql queries working at the backend of django from browser
directly?

--
Harjot Kaur Mann
Blog: http://harjotmann.wordpress.com/
Daily Dairy: http://harjotmann.wordpress.com/daily-diary/

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAB0GQhCjrmdzatgf88XquQ3XDBnBNR7smyooe%2Bodt4xM21EsEQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate