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
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
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
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
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,
5 matches
Mail list logo