John M. Anderson wrote:
> I'm trying to debug sql.py
>
> the steps I've taken so far:
>
> python /usr/lib/python2.5/pdb.py manage.py sql polls
> (python manage.py polls works just fine)
You cannot debug a single Django file in isolation. Instead, insert this line:
import pdb; pdb.set_trace()
in sql.py, at the point you're interested in. Then run Django normally, and
go to a db-based URL: you'll get a debugger prompt.
--
Nicola Larosa - http://www.tekNico.net/
I grew up with the colonialist propaganda, the "occupier's narrative",
and it took me half my life to realize it was all a lie. [...] If I
were among those directly afflicted by the genocide, paternalism,
exploitation, theft and abuse committed every day by colonial invaders,
in almost every nation on the planet, I would be consumed by rage. [...]
We should be ashamed of ourselves. -- Dave Pollard, July 2007
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---