Background:
I have an OpenShift Python 2.7 gear containing my Django 1.6 application. I used django-openshift-quickstart.git as a starting point for my own project and it works well.
However, if I have a syntax error in my code or some other exception I have no way of finding it. I can do a tail of the logs via:
rhc tail -a appname
However, this only shows me that a 500 error occurred. I never see any exceptions or details other than:
10.137.24.60, x.x.x.x - - [13/Nov/2014:17:12:27 -0500] "GET /snapper/snapshots HTTP/1.1" 500 27 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36"
The client web browser reports:
Server Error (500)
I turned on the DEBUG setting (DEBUG = True) in my settings.py but that made no difference. I still see no exceptions in the logs or in the browser.
I believe the container (gear) is using haproxy + apache + mod_wsgi + python2.7.
I'd dearly love to start getting Django exceptions reporting to my browser.
Question:
Why do I not see Django exceptions in my browser (or log files) under OpenShift when DEBUG is set to True ?
I realise this appears similar to the existing question How to debug Django exceptions in OpenShift applications but "rhc tail -a" simply displays the 500 error lines - I still see no Django exceptions.
AtDhVaAnNkCsE
Doug