2009/1/16 Frédéric Sidler <[email protected]>:
> I know ;-)
>
> Here is it
>
> from django.core.handlers.wsgi import WSGIHandler
>
> _application = WSGIHandler()
>
> def application(environ, start_response):
> os.environ['USER'] = environ['USER']
> os.environ['DJANGO_SETTINGS_MODULE'] = environ['DJANGO_SETTINGS_MODULE']
>
> return _application(environ, start_response)
>
> This is pretty useful, because each developper that works independanly share
> the main settings.py for common paramaters and can change their own
> parameters settings in his unixunsername.py
Does this mean you only have one WSGI script file for all sites?
If you do this, then you deny the option to a specific site to have
their site reloaded after a change by just touching the WSGI script
file. If they had permissions to touch WSGI script file, it would
reload every site.
If you have done that, you should also ensure you use display-name
option to WSGIDaemonProcess such that process for each site can be
identified in 'ps' and they can send the process a signal to restart
it.
WSGIDaemonProcess feed.jocada.com user=mixint group=mixin
display-name=%{GROUP}
Use that and do a 'ps aux' or 'ps -ef' (depending on system) and grep
for 'wsgi'. You should see each sites process then stand out in more
obvious way.
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
-~----------~----~----~----~------~----~------~--~---