openshift/django-example — pull request #15 by suhailvs (2013-03-31 07:16:37+00:00)
Title:  on the file wsgi/openshift/settings.py

ON_OPENSHIFT = False
if os.environ.has_key('OPENSHIFT_REPO_DIR'):
ON_OPENSHIFT = True

has_key not supported on python3xx.

but the below code will work with python2XX and python3xx

ON_OPENSHIFT = 'OPENSHIFT_REPO_DIR' in os.environ

i tested on python330,python264 etc.