Question: Im getting a single line entry in my log that just says 'GET 500 27' and the browser is showing a 500 error as well naturally. If the log is not giving me anything useful, then how can I go about troubleshooting this to see where the error is happening in Django?

EDIT: I should add that my dev environment is working just fine. 

EDIT II: yeah allowed hosts is set properly. It works fine in the django dev environment, and it was working fine in openshift until I started getting this error.

Answer: 
Make sure you have 'EMAIL\_BACKEND, EMAIL\_HOST, etc' set in the settings.py
and set your `ADMINS = (('Your Name', 'youremail@email.com'),)` in there as well.
that way errors should get sent to you via email.
I think the 500 error belongs to these settings on settings.py:

```
DEBUG = os.environ.get('DEBUG') == 'True'`

```

Resolved by replacing with - 

```
DEBUG = True
if os.environ.get('DEBUG') is not None:
    DEBUG = os.environ.get('DEBUG') == 'True'

```