[uWSGI] WSGI environment vs. process environment

Michael Tharp gxti at partiallystapled.com
Sat Nov 27 23:03:48 CET 2010


Is there a way to insert entries into the WSGI environment from uwsgi's 
configuration? --env seems to only update the process environment.

  $ uwsgi --ini wsgitest.ini --env my_config=test.cfg
*** Starting uWSGI 0.9.6.5 (64bit) on [Sat Nov 27 16:50:39 2010] ***
[snip]
(Epdb) self.environ.get('my_config')
None
(Epdb) os.getenv('my_config')
'test.cfg'

Compare mod_wsgi, where apache's SetEnv directive affects the WSGI 
environment.


More information about the uWSGI mailing list