You need both the directory of your site as well as the parent directory.
import os
import sys
sys.path.append('/root/src/satchmo/satchmo/apps')
sys.path.append('/srv/www//duckling.org')
sys.path.append('/srv/www//duckling.org/store')
os.environ['DJANGO_SETTINGS_MODULE'] = 'store.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
This is mentioned in Django document on mod_wsgi wiki.
Graham
On 13 December 2010 07:18, j <[email protected]> wrote:
> No luck so far today and I've been on it since this morning. It might only
> be a few paths I need to append so the unfortunate part of
> this predicament is that If I start going and changing things around I could
> mess everything up even worse. I'll just wait and see if anyone has any
> ideas of how I might should load my paths into mod_wsgi better, I'm sure
> it's something I've got configured wrong, whether it's the PYTHONPATH or
> sys.path or....
> The project runs fine on development test server that comes with Django so I
> don't think it's missing modules that weren't installed but just missing
> loading the modules into the project application.
> Thanks again for the help, couldn't do this without it.
> Jim
>
> --
> 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.
>
--
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.