import pdb; pdb.set_trace()
http://charlee.li/debug-djangp-with-pdb.html
https://github.com/tomchristie/django-pdb