wsgi import sys import os sys path append os path dirname os path absp

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#wsgi
import sys
import os
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/..')
os.environ['DJANGO_SETTINGS_MODULE'] = 'kamwh.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()