Mercurial > public > bravenewsurf
comparison bns_website/apache/bns.wsgi @ 26:6f68f6800843
For #5, make some tweaks to the files to prepare for production hosting.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 01 Nov 2011 19:17:07 -0500 |
parents | ef4155f8c234 |
children | a5e8741452a3 |
comparison
equal
deleted
inserted
replaced
25:72bfeac8f4f3 | 26:6f68f6800843 |
---|---|
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 | 11 |
12 sys.path.extend([project, website, third_party_apps]) | 12 sys.path.extend([repo, website]) |
13 | 13 |
14 os.environ['PYTHON_EGG_CACHE'] = eggs | 14 os.environ['PYTHON_EGG_CACHE'] = eggs |
15 | 15 |
16 | 16 |
17 def offline_handler(environ, start_response): | 17 def offline_handler(environ, start_response): |