import os import sys import django sys.path.append('/'.join(os.getcwd().split('/')[:-1])') sys.path.append(os.join(os.getcwd().split('/'),comments)) os.environ['DJANGO_SETTINGS_MODULE'] = 'hgbook.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler()