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, django_src

[EMAIL PROTECTED] test]$ python test_threaded.py
Traceback (most recent call last):
  File "ending_threaded.py", line 2, in <module>
    from apps.utils.threadpool import *
ImportError: No module named apps.utils.threadpool

[EMAIL PROTECTED] test]$ echo $PYTHONPATH
:/home/bobby/dev/workspace

[EMAIL PROTECTED] test]$ echo $DJANGO_SETTINGS_MODULE
mysite.settings

.bashrc:
export PATH=$PATH:/home/bobby/dev/workspace

>>> import sys
>>> print sys.path
['', '/usr/lib/python2.5/site-packages/Pyro-3.7-py2.5.egg', '/usr/lib/
python2.5/site-packages/MySQL_python-1.2.2-py2.5-linux-i686.egg', '/
usr/lib/python25.zip', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-
linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-
dynload', '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-
packages/Numeric', '/usr/lib/python2.5/site-packages/PIL', '/usr/lib/
python2.5/site-packages/gtk-2.0']


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