Debugging Django on Dreamhost is proving quite the challenge. To my knowledge, print statements aren’t available, and neither are logs… any suggestions?
Debugging Django on Dreamhost is proving quite the challenge. To my knowledge, print statements
Share
The Django Debug Toolbar, as already mentioned, is damn useful.
But as long as Django is running in debug mode, the brute force method equivalent to the
printstatement is to simply throw an exception. Put whatever output you want in the exception’s text, whenever you need a quick idea of you code’s state, and voila… instant output and stacktrace. This isn’t a comprehensive solution, but it is a quickprintstatement style hack.