Debugging Django on Dreamhost is proving quite the challenge. To my knowledge, print statements aren't available, and neither are logs... any suggestions?
+1
A:
Have you tried the Django Debug Toolbar?
For a summary of the features, watch the video here.
theycallmemorty
2009-12-09 02:30:59
+2
A:
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 print
statement 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 quick print
statement style hack.
Daniel
2009-12-09 04:40:02
Yep, I use `assert False, <some value I'm interested in>` constantly while developing in Django.
Will McCutchen
2009-12-09 05:54:28
+1 to assert False
Harold
2009-12-10 03:42:50