-
Notifications
You must be signed in to change notification settings - Fork 1
/
atmosphere.wsgi
executable file
·44 lines (31 loc) · 1.32 KB
/
atmosphere.wsgi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
# The contents of this file are subject to the terms listed in the LICENSE file you received with this code.
#
# Project: Atmosphere, iPlant Collaborative
# Author: Seung-jin Kim
# Twitter: @seungjin
# GitHub: seungjin
#
import os
import sys
import site
# developed and tested with wsgi (apache)
# for scalable service,
# running Djanog with Tornado is not a bad idea at all.
# One directory above the project, so project name will be needed for imports
root_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
# with mod_wsgi >= 2.4, this line will add this path in front of the python path
#site.addsitedir(os.path.join(root_dir, 'lib/python2.5/site-packages'))
#site.addsitedir('/usr/local/lib/python2.5/site-packages')
site.addsitedir('/opt/python-2.6.6/lib/python2.6/site-packages')
# add this django project
#sys.path.append(root_dir)
sys.path.append('/home/atmosphere_dev/')
#sys.path.append('/home/atmosphere_preview_101020/atmosphere')
#sys.path.append('/usr/local/lib/python2.5/site-packages')
sys.path.append('/opt/python-2.6.6/lib/python2.6/site-packages')
os.environ['DJANGO_SETTINGS_MODULE'] = 'atmosphere.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
os.environ['PYTHON_EGG_CACHE'] = '/home/atmosphere_dev/atmosphere'
os.environ["CELERY_LOADER"] = "django"