Then that directory isn't where it is installed, or the permissions on
your directories are such that user that Apache runs as can't read
that directory. Post a 'ls -las' directory listing of your site-
packages directory and check that from that directory up to your home
directory is readable to others.

Also move that sys.path.append() to before you import
django.core.handlers.wsgi. This will not solve the problem, but you
are updating it after everything else, which is a bit weird. Only
works because Django only requires it the first time a request
arrives.

Graham

On Sep 16, 5:28 pm, Jagdeep Singh Malhi <singh.malh...@gmail.com>
wrote:
> On Sep 16, 2:25 am, Graham Dumpleton <graham.dumple...@gmail.com>
> wrote:> You need to add it to sys.path in WSGI script file. The PYTHONPATH
> > in .bashrc of your personal account isn't used by Apache/mod_wsgi.
>
> > Graham
>
> i already use sys.path
> my WSGI script file is
> {
> import site
> site.addsitedir('/home/jagdeep/CMS/bin/lib/python2.6/site-packages')
> import os
> import sys
>
> os.environ['DJANGO_SETTINGS_MODULE'] = 'djangocms.settings'
>
> import django.core.handlers.wsgi
> application = django.core.handlers.wsgi.WSGIHandler()
> sys.path.append('/home/jagdeep/')
>
> }
>
> my django project is placed in /home/jagdeep/djangocms   directory

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to