On 3/26/07, Tim Chase <[EMAIL PROTECTED]> wrote:
>    result = render_to_response('foo.html', context)
>    f = file('debug.txt', 'w')
>    f.write(repr(connection.queries))
>    f.close()
>    return result

Where can I put this so I get all queries for every request into a single file?

> Alternatively, you can insert a
>
>    import pdb; pdb.set_trace()
>
> line instead and use pdb to explore your context.

I've been using that but it's not very helpful to me personally since
it doesn't use my ipython with tab completion.  Being new to Django I
don't really know what I'm looking for without tab completion.  I
barely know with it.  Any idea how to make pdb use ipython?


Thanks,


-- 
Greg Donald
http://destiney.com/

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

Reply via email to