import pdb; pdb.set_trace()
into a file named
debug.py somewhere in your path. Then anywhere in your django app you just put
and when you run that webpage it will seem to take a really long time. Just switch to the console and you will have a python debugger open. I usually just type normal python commands
dir(object) but it also support commands like gdb.
c for continue running,
n for next line, etc…
Thanks to debugging django for this tip.