Mercurial > public > sg101
comparison gpp/apache/sg101.wsgi @ 48:31cb8d55e3a1
Fix typo in wsgi file.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 21 Jun 2009 21:31:24 +0000 |
parents | 6dfcbbf11243 |
children | 04dcbf008bcc |
comparison
equal
deleted
inserted
replaced
47:6dfcbbf11243 | 48:31cb8d55e3a1 |
---|---|
11 os.environ['PYTHON_EGG_CACHE'] = '/home/var/django-sites/sg101/eggs/' | 11 os.environ['PYTHON_EGG_CACHE'] = '/home/var/django-sites/sg101/eggs/' |
12 | 12 |
13 | 13 |
14 def offline_handler(environ, start_response): | 14 def offline_handler(environ, start_response): |
15 wsgi_dir = os.path.dirname(__file__) | 15 wsgi_dir = os.path.dirname(__file__) |
16 sys.path.append(project_dir) | 16 sys.path.append(wsgi_dir) |
17 | 17 |
18 offline_file = os.path.join(wsgi_dir, '..', 'templates', 'offline.html') | 18 offline_file = os.path.join(wsgi_dir, '..', 'templates', 'offline.html') |
19 if os.path.exists(offline_file): | 19 if os.path.exists(offline_file): |
20 response_headers = [('Content-type','text/html')] | 20 response_headers = [('Content-type','text/html')] |
21 response = open(offline_file).read() | 21 response = open(offline_file).read() |