can't you use --env for that? seems to be The Most Obvious Way for this
kind of things


2013/5/20 dracek mracek <[email protected]>

> Hello,
>
> I would like to ask if it's possible to access to config values defined in
> application config (ie .ini). I want mysql db connection was specified in
> the config but didn't find how to access to them in Python (using uWSGI
> 1.9.10, Debian)
>
> So far I've gone through dozens of values but nothing seems to fit
> configuration.
> import uwsgi
> len(uwsgi)
>
> I also tried to build the uWSGI binary with using option embed_config in
> buildconf/base.ini but building didn't succeed.
>
> Before using ConfigParser in Python I'd like to check if there is an
> easier solution in uWSGI :)
>
> Thanks for any advice,
> -- Tom
>
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>
>


-- 
Łukasz Mierzwa
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to