On 27 February 2011 03:22, bc <[email protected]> wrote: > Is the application group name available to the wsgi application? I'm > trying to understand how application groups work, and would like to > log the application group name from the application.
Use 'mod_wsgi.application_group' named variable in WSGI environ dictionary. See: http://code.google.com/p/modwsgi/wiki/CheckingYourInstallation#Sub_Interpreter_Being_Used As long as you aren't using an ancient mod_version version, you can also go: import mod_wsgi and look at 'mod_wsgi.application_group' global variable. An application group is just a named interpreter within the specific process that code is running in. The main interpreter is named interpreter with empty name and which is referred to in directives in Apache configuration as '%{GLOBAL}. Where multi process configuration is used, each process will have instance of the named interpreter. So, they are not somehow magically shared across processes and some have thought at times. Graham -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
