2013-01-13 17:22:27 -08:00
|
|
|
#!/usr/bin/python
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
import site
|
|
|
|
|
2013-01-13 17:31:18 -08:00
|
|
|
base_path = "/srv/http/archweb"
|
|
|
|
|
2018-02-16 12:58:39 -08:00
|
|
|
site.addsitedir('/srv/http/archweb-env/lib/python3.6/site-packages')
|
2013-01-13 17:31:18 -08:00
|
|
|
sys.path.insert(0, base_path)
|
2013-01-13 17:22:27 -08:00
|
|
|
|
2013-01-13 17:23:53 -08:00
|
|
|
os.environ['DJANGO_SETTINGS_MODULE'] = "settings"
|
2013-01-13 17:22:27 -08:00
|
|
|
|
2013-01-13 17:31:18 -08:00
|
|
|
os.chdir(base_path)
|
|
|
|
|
2014-09-11 17:09:49 -07:00
|
|
|
from django.core.wsgi import get_wsgi_application
|
|
|
|
application = get_wsgi_application()
|