Diagnostics
Debug
I have always found the built-in
Python debugger pdb to be invaluable. Just put the following wherever
you need a breakpoint;
import pdb; pdb.set_trace()
and the debugger will show in the console.
Pretty Error Page
To view the state of your application using the Django error page, add the following into your view:
Assert false