import os import sys sys.path.append('/home/hg/repos/') os.environ['DJANGO_SETTINGS_MODULE'] = 'ws_reg.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler()