Suppose ur project is project1, under /var/www/projects/, eg.
  /var/www/projects/project1
  /var/www/projects/project1/settings.py

The setting should be:
  PythonPath "['/var/www/projects'] + sys.path"

So that the following works.
  import project1.settings

Best,
V

On Oct 4, 12:34 pm, juampa <[EMAIL PROTECTED]> wrote:
> Hello all:
>
> I am deploying a Django project with Apache 2.0.55 and mod_python
> 3.3.1 on Mac OS X Panther 10.3.9 server.
> The problem is that when I try to load the page on my browser, I get a
> mod_python debug error indicating that my project's settings cannot be
> imported by django/conf/__init__.py (Line 85, Environment Error). But
> I know the path is correct. I even added an assert line to
> django.conf.__init__.py to dump the sys.path and it has indeed the
> proper path to my project, as loaded in httpd.conf with:
>
> PythonPath "['/path/to/project'] + sys.path"
> setEnv DJANGO_SETTINGS_MODULE project.settings
>
> To confirm that things are OK, I managed to run the project by putting
> it in the site-packages directory off the python2.5 installation
> directory. The project directory has 755 permissions so anyone should
> be able to run it (same permissions as python itself).
>
> I installed python 2.5 by compiling it from source, because the
> universal binary installer gave me trouble for compiling mod_python
> later on. I did a "sudo make install" for python, so it was all
> installed as root and group wheel. The path to python is the first
> item in the PATH environment variable in /etc/profile, so any user
> should be running python 2.5. I am running the Apache 2.0.55 that came
> with Panther server.
>
> Any ideas as to what is going on?
>
> Thanks,
>
> Juampa


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