21 May 2013 05:59
Re: Access to the config options at the global scope in uWSGI app
On Mon, May 20, 2013 at 1:26 PM, dracek mracek <dracekm <at> gmail.com> wrote:
--
C Anthony
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 uwsgilen(uwsgi)
you can use `--get` for external access, but within python you can access from the `uwsgi` module... i forget the exact attr off the top of my head, but try:
>>> import uwsgi
>>> help(uwsgi)
...instead of `len` and methinks it will all pan out from there ;)
C Anthony
_______________________________________________ uWSGI mailing list uWSGI@... http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
RSS Feed