Thursday, July 7, 2011

Re: KeyError in UnitTests

You should be able to use pdb and then examine variables in scope.
Aren't you getting a pdb prompt? Are you redirecting your output?

You can also using logging and put a bunch of debug statements in to
narrow down where the problem lies.

If you can make a bare-bones copy of your app that duplicates your
problem and provide it I'm sure someone would take a look. Also, paring
down your code to the smallest broken piece is likely to reveal the
source of the problem to 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate