comparison bns_website/apache/bns.wsgi @ 39:b9d6f6d930a9

Merged Chris and Brian's changes with mine.
author Bob Mourlam <bob.mourlam@gmail.com>
date Sun, 06 Nov 2011 20:28:25 -0600
parents a5e8741452a3
children f00199f1524c
comparison
equal deleted inserted replaced
38:6b4e02b8be6b 39:b9d6f6d930a9
3 3
4 OFFLINE = False 4 OFFLINE = False
5 5
6 here = os.path.dirname(__file__) 6 here = os.path.dirname(__file__)
7 website = os.path.dirname(here) 7 website = os.path.dirname(here)
8 project = os.path.dirname(website) 8 repo = os.path.dirname(website)
9 third_party_apps = os.path.join(project, '3rdparty') 9 project = os.path.dirname(repo)
10 eggs = os.path.join(project, 'eggs') 10 eggs = os.path.join(project, 'eggs')
11 django = os.path.join(project, 'django')
11 12
12 sys.path.extend([project, website, third_party_apps]) 13 sys.path.extend([repo, website, django])
13 14
14 os.environ['PYTHON_EGG_CACHE'] = eggs 15 os.environ['PYTHON_EGG_CACHE'] = eggs
15 16
16 17
17 def offline_handler(environ, start_response): 18 def offline_handler(environ, start_response):