I start by developing Django code on a server running on top of Apache / mod_wsgi.
I want to understand a few things:
What methods are commonly used to debug applications running on the server?
In particular, I'm trying to just use Debug "print" for now. But I cannot seem that printed statements work. I print to stderr, but I'm not sure which log file should look. According to this , I have to use environ['wsgi.errors'] , but how do I get access to this from my Django code?
Thanks!
EDIT:. By the way, adding the line print >> sys.stderr, 'message ...' not only does not print a single log file, this leads to the fact that parts of my application simply do not load.
debugging django web-applications apache mod-wsgi
Edan maor
source share