Problems with sys path .... I think


I have made sure to provide the full path for my in the .wsgi file, however it still cannot be found on my system path. Am I doing something wrong here? I have been at this for quite awhile now ... here is my wsgi file:

import os 
import sys

path = '/home/jordanhourani/killed-animal-reporter/killedanimalreporter'

if path not in sys.path:

os.environ['DJANGO_SETTINGS_MODULE'] = 'killedanimalreporter.settings'

import django.core.handlers.wsgi 
application = django.core.handlers.wsgi.WSGIHandler()

That config will work if the path to your settings file is


If it's just


then you need

path = '/home/jordanhourani/killed-animal-reporter'

because you're specifying the settings module as killedanimalreporter.settings...

yep, that was it. thank you I was going crazy over that! :)

no worries. sys.path and import issues are often tricky!