On 26 June 2012 23:37, Benjamin Bach <[email protected]> wrote:
>
>> I'm currently running mod_wsgi 2.8 on Ubuntu Lucid, so the first thing
>> I'll do is try to upgrade to mod_wsgi 3.X and report back if the problem has
>> gone or not.
>
>
> The problem persists on 3.X. Restarting Apache or the server does not work.
> Graham's suggestion to use "WSGIVerboseLogging" does not work, as this
> directive does not exist, nor in the documentation?

Sorry, wrong name:

WSGIVerboseDebugging

> I have searched my whole codebase, and the only place that the
> "settings_alternative" string exists is in a single WSGI configuration that
> is only used in a single :443 virtual host.
>
> I do not know how to progress with this error. However, I read the following
> in the modwsgi docs on Django projects:
>
>> Note that Django expects the name of the site settings file to be stored
>> in the environment variable DJANGO_SETTINGS_MODULE. This means that it is
>> impossible to run two Django sites within one Python sub interpreter. This
>> isn't in general a problem with mod_wsgi however, as the default for
>> mod_wsgi is to execute each WSGI application within the context of its own
>> Python sub interpreter.
>
>
> Can the problem be that the environment variable is mistakenly interchanged
> with another running instance
>
> I'm running prefork MPM.

But are you using daemon mode?

Provide a sample of your mod_wsgi configuration for a site.

Graham

> The WSGI file, project_alternative.wsgi, that loads the settings_alternative
> module looks like this:
>
> import os
> import sys
> import site
>
> activate_this = '/path/to/virtenv/bin/activate_this.py'
> execfile(activate_this, dict(__file__=activate_this))
>
> os.environ['DJANGO_SETTINGS_MODULE'] = 'settings_alternative'
>
> PROJECT_PATH = os.path.abspath(os.path.split(__file__)[0])
> PROJECT_PARENT = os.path.abspath(os.path.split(PROJECT_PATH)[0])
> sys.path.insert(0, PROJECT_PATH)
> sys.path.insert(0, PROJECT_PARENT)
>
>
> import django.core.handlers.wsgi
> application = django.core.handlers.wsgi.WSGIHandler()

-- 
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.

Reply via email to