Hey, i'm trying to deploy my app but i'm stuck on this error.
ImportError: No module named core.handlers.wsgi
I have no idea why this happens, I've tried to debug this via help section and google search, ended up with importing manually dist-packages and site-packages as suggested, but these hints aren't making any difference. Here's my wsgi file:
path = '/home/xolir/goodjob/kasztany/myproject/kasztan/settings/'
if path not in sys.path:
sys.path.append(path)
#
os.environ['DJANGO_SETTINGS_MODULE'] = 'base'
path = '/home/xolir/goodjob/kasztany/lib/python2.7/site-packages/'
if path not in sys.path:
sys.path.append(path)
path = '/usr/local/lib/python2.7/dist-packages/'
if path not in sys.path:
sys.path.append(path)
#
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
I've tried this in shell, and both settings file and import are working withing declared paths.
Thanks in advance!