import os sys site_path os path join os path dirname __file__ django_p

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
import os, sys
site_path = os.path.join(os.path.dirname(__file__), '')
django_path = os.path.join(os.path.dirname(__file__), 'django')
sys.path.append(django_path)
sys.path.append(site_path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'corporate.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()