19 lines
538 B
Python
Executable file
19 lines
538 B
Python
Executable file
import os
|
|
|
|
##########
|
|
|
|
import site
|
|
site.addsitedir('/home/ntuh/d14env/lib/python2.7/site-packages')
|
|
|
|
import sys
|
|
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
|
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
|
|
##########
|
|
|
|
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
|
|
settings_module = "%s.settings" % PROJECT_ROOT.split(os.sep)[-1]
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module)
|
|
|
|
from django.core.wsgi import get_wsgi_application
|
|
application = get_wsgi_application()
|