Yep. This is also a common problem when people move to mod_python and
don't reference through site package name. Thereby needing to add both
parent and site directories to PythonPath directive in Apache
configuration.

Graham

On Sep 11, 10:57 pm, johnny <[EMAIL PROTECTED]> wrote:
> Only works when I put my actual project folder (/home/bobby/dev/
> workspace/mysite) into to the $PYTHONPATH and $PATH.  All my django
> code, I never do:
>
> from mysite.apps.whatever import
>
> just:
>
> from apps.whatever import
>
> So in this case, I guess you have to put in the project folder into
> the $PYTHONPATH and $PATH, not just the parent folder (/home/bobby/dev/
> workspace) where all other django projects reside.
>
> # .bashrc
>
> # Source global definitions
> if [ -f /etc/bashrc ]; then
>         . /etc/bashrc
> fi
>
> export PATH=$PATH:/home/bobby/dev/workspace:/home/bobby/dev/workspace/
> mysite
> export PYTHONPATH=$PYTHONPATH:/home/bobby/dev/workspace:/home/bobby/
> dev/workspace/mysite
> export DJANGO_PROJECT='something'
> export DJANGO_DB_NAME='something'
> export DJANGO_DB_USER='something'
> export DJANGO_DB_PASS='something'
> export DJANGO_SECRET_KEY='something'
> export DJANGO_SETTINGS_MODULE='mysite.settings'
>
> # User specific aliases and functions


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