blob: 92401d7637e97487e4eab1f106d28543ac50897d (
plain)
1
2
3
4
5
6
7
8
9
|
import os
import Bcfg2.settings
os.environ['DJANGO_SETTINGS_MODULE'] = 'Bcfg2.settings'
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)
|