Configure Wsgi With Django On Openshift
I tried to configure WSGI with wsgi.py in my project folder import os import sys sys.path.append(os.path.join(os.environ['OPENSHIFT_REPO_DIR'])) os.environ['DJANGO_SETTINGS_MODUL
Solution 1:
I had on the top of wsgi.py
os.path.join(os.environ['OPENSHIFT_HOMEDIR'], 'app-root/repo')
and I didn't have this error ! And I also put all my code under folder which have the name of my project in order to match
os.environ['DJANGO_SETTINGS_MODULE'] = 'project.settings'
Post a Comment for "Configure Wsgi With Django On Openshift"