Mercurial > public > sg101
comparison gpp/apache/sg101.wsgi @ 499:1a09a7bea000
For #236, switch to a settings package scheme.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 30 Nov 2011 02:41:18 +0000 |
parents | 04dcbf008bcc |
children | 5794e3414596 |
comparison
equal
deleted
inserted
replaced
498:b137a0966e4b | 499:1a09a7bea000 |
---|---|
30 start_response(status, response_headers) | 30 start_response(status, response_headers) |
31 return [response] | 31 return [response] |
32 | 32 |
33 | 33 |
34 if not OFFLINE: | 34 if not OFFLINE: |
35 os.environ['DJANGO_SETTINGS_MODULE'] = 'gpp.settings' | 35 os.environ['DJANGO_SETTINGS_MODULE'] = 'gpp.settings.production' |
36 import django.core.handlers.wsgi | 36 import django.core.handlers.wsgi |
37 application = django.core.handlers.wsgi.WSGIHandler() | 37 application = django.core.handlers.wsgi.WSGIHandler() |
38 else: | 38 else: |
39 application = offline_handler | 39 application = offline_handler |
40 | 40 |