Re: Linux django_settings_module problem

2007-09-11 Thread Collin Grady
You can also just fix the imports to reference things properly, including the site name :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Linux django_settings_module problem

2007-09-11 Thread Graham Dumpleton
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

Re: Linux django_settings_module problem

2007-09-11 Thread johnny
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

Re: Linux django_settings_module problem

2007-09-10 Thread Graham Dumpleton
Did you export the environment variables after you sent them. export PYTHONPATH export DJANGO_SETTINGS_MODULE Graham On Sep 11, 2:14 pm, johnny <[EMAIL PROTECTED]> wrote: > Trying to run standalone python script that uses django orm. > Something wrong with path setup to execute this python

Linux django_settings_module problem

2007-09-10 Thread johnny
Trying to run standalone python script that uses django orm. Something wrong with path setup to execute this python script. Also, what is the purpose of setting $DJANGO_SETTINGS_MODULE=mysite.settings? I think this is where the problem is. /home/bobby/dev/workspace has folder: mysite,