diff options
Diffstat (limited to 'reports/reports.wsgi')
-rw-r--r-- | reports/reports.wsgi | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/reports/reports.wsgi b/reports/reports.wsgi index 92401d763..c2a2be1ce 100644 --- a/reports/reports.wsgi +++ b/reports/reports.wsgi @@ -1,9 +1,10 @@ import os -import Bcfg2.settings -os.environ['DJANGO_SETTINGS_MODULE'] = 'Bcfg2.settings' +import Bcfg2.Options +import Bcfg2.DBSettings + +Bcfg2.Options.get_parser().parse() + import django.core.handlers.wsgi def application(environ, start_response): - if 'BCFG2_CONFIG_FILE' in environ: - Bcfg2.settings.read_config(cfile=environ['BCFG2_CONFIG_FILE']) return django.core.handlers.wsgi.WSGIHandler()(environ, start_response) |