django is in your sys.path?

2008/1/16, Scott <[EMAIL PROTECTED]>:
>
>
> Thank you to anyone who may be of help...
>
> PROBLEM:
>
> ImportError: No module named django
>
> MY SETTINGS:
>
> /Working/django/django/__init__.py   (file exists)
> /Working/projects/                              (my main project
> folder)
> /Working/projects/mysite                    ('mysite' project folder)
> /usr/lib/python2.4/site-packages        (my python packages folder)
> (Permissions are 755 with owner:group = root:root)
>
> httpd.conf directives are...
>
> <Location "/mysite">
>     SetHandler python-program
>     PythonPath "['/Working/django','/Working/modules','/Working/
> projects','/Working/projects/mysite'] + sys.path"
>     SetEnv DJANGO_SETTINGS_MODULE mysite.settings
> #  PythonHandler mod_python.testhandler
>     PythonHandler django.core.handlers.modpython
>     PythonDebug On
> </Location>
>
> OTHER CLUES:
>
> - Django imports just fine from command line python call with
> $PYTHONPATH exported to same directories as location directive.
> - If I put my django folder in /usr/lib/python2.4/site-packages/ it
> works.
> - A sym link from /Working/django/django to /usr/lib/python2.4/site-
> packages/django does not work.
> - Reference by PythonPath directive also is failing.
> - Viewing testhandler output shows that my /Working/* directories are
> getting into sys.path alright.
>
> MY SYSTEM:
>
> OS = { Red Hat Enterprise Linux 5 | RHEL 5 | RHEL5 }
> Python 2.4.3 (#1, Dec 11 2006, 11:38:52)
> Apache/2.2.3 (Red Hat) Server
> mod_python.version '3.2.8'
> Django VERSION = (0, 97, 'pre')
>
>
> Thank you for looking.
>
> Scott
>
> >
>

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

Reply via email to