class WSGIEnvironment(WSGIHandler):

    def __call__(self, environ, start_response):
        os.environ['USKOVTASK_PROD'] = environ['USKOVTASK_PROD']
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'uskovtask.settings')
django.setup()
Django + mod_wsgi. Set OS environment variable from Apache's SetEnv