From 6514e4ce7b6e8146b8378bded631d9e55c903113 Mon Sep 17 00:00:00 2001 From: Eric Floehr Date: Wed, 26 Aug 2015 20:37:16 -0400 Subject: [PATCH] Set Python path correctly when running as a WSGI service --- cohpy/wsgi.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cohpy/wsgi.py b/cohpy/wsgi.py index 426ddc1..0687b4c 100644 --- a/cohpy/wsgi.py +++ b/cohpy/wsgi.py @@ -8,6 +8,10 @@ """ import os +import sys +from django.core.wsgi import get_wsgi_application + +sys.path.append(os.path.dirname(__file__)) from django.core.wsgi import get_wsgi_application