diff --git a/wsgi.py b/wsgi.py index be41e4f..0ed7b87 100644 --- a/wsgi.py +++ b/wsgi.py @@ -17,3 +17,6 @@ from wsgiref.simple_server import make_server httpd = make_server(ip, port, zapp.application) httpd.serve_forever() +else: + from django.core.wsgi import get_wsgi_application + application = get_wsgi_application() diff --git a/wsgi/openshift/manage.py b/wsgi/openshift/manage.py index f9726f9..0277d84 100644 --- a/wsgi/openshift/manage.py +++ b/wsgi/openshift/manage.py @@ -2,6 +2,7 @@ import os import sys +sys.path.append(os.path.join(os.path.dirname(__file__), '..', "..")) if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")