> Adding an ability to for the applications run by uwsgi to access uwsgi > runtime configuration options (wether they are passed through command > line, environment, configuration file etc) may seem as a good idea. This > would allow fine tuning any application from the application itself if > it is written in such a manner (i.e. if it reads those options and > behaves accordingly). > > Cheers. >
I think you are referring to the already available uwsgi.opt dictionary [uwsgi] foo = bar processes = 4 custom001 = %(foo)/bar import uwsgi # will print 'bar' print uwsgi.opt['foo'] # will print '4' print uwsgi.opt['processes'] # will print 'bar/bar' print uwsgi.opt['custom001'] * WARNING * this feature is only available in the python plugin :( -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
