Mercurial > public > madeira
comparison mysite/apache/madeira.wsgi @ 34:903260593491
Reworking settings.py to a settings package.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 29 Nov 2011 03:14:25 +0000 |
parents | efb2da0b5d10 |
children |
comparison
equal
deleted
inserted
replaced
33:7d8015de651a | 34:903260593491 |
---|---|
28 start_response(status, response_headers) | 28 start_response(status, response_headers) |
29 return [response] | 29 return [response] |
30 | 30 |
31 | 31 |
32 if not OFFLINE: | 32 if not OFFLINE: |
33 os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' | 33 os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings.production' |
34 import django.core.handlers.wsgi | 34 import django.core.handlers.wsgi |
35 application = django.core.handlers.wsgi.WSGIHandler() | 35 application = django.core.handlers.wsgi.WSGIHandler() |
36 else: | 36 else: |
37 application = offline_handler | 37 application = offline_handler |