Hello,

I am using uwsgi with a django application behind nginx. I 'd like to
introduce some initialization logic just after workers spawning but before
actual django app's loading. Eg. i 'd like to set some env variables which
names contains the workers' pid or even pre-initialize each worker/django's
logging facilities. I have read about 'uwsgi.workers()' but their pids are
(of course) 0 when -w module is loaded while i can't find any hook between
worker spawning and app's loading. Any ideas? Is there any hook for that?

Thank you,
George Kollias.
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to