> I'm having an impossible time getting a Flask app to see any environment > variables I try and pass through from nginx using the "uwsgi_param > UWSGI_SETENV VARNAME=FOO" method. > > Trying to access these vars via os.environ['VARNAME'] always throws a > KeyError exception. Interestingly, passing an env variable to the Flask app > via the uwsgi config file itself works as expected. > > The Flask app is running as a vassal of the emperor (in its own virtualenv) > and copied below are the relevant bits of my config.
I think you need to run uwsgi in "dynamic" mode for that to work. "dynamic" mode is when you don't specify an application to run. -- damjan _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
