Re: Running django in standalone mode

2007-04-11 Thread Alex Dong
here is the 'run.sh' I've created. Hope it helps. Now, to run a cron job, say 'cleanup.py', you will only need to do 'run.sh cleanup.py'. %< #!/bin/bash export PYTHONPATH="$PYTHONPATH:/lib/python2.4/site-package/django/:/ home/alex/projects/" export DJANGO_SETTIN

Re: Running django in standalone mode

2007-04-11 Thread Alex Dong
Thanks many. It works like a charm now. Alex On Apr 12, 12:54 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I am assuming that "looker" is the name of your project directory. > When you use the statement "from looker...", python is searching > through its search path and looking for eithe

Re: Running django in standalone mode

2007-04-11 Thread [EMAIL PROTECTED]
I am assuming that "looker" is the name of your project directory. When you use the statement "from looker...", python is searching through its search path and looking for either modules (python files) or packages (modules grouped in a directory containing an __init__.py file) called "looker". Yo

Running django in standalone mode

2007-04-11 Thread Alex Dong
I'm having a bunch of cron jobs which will use django model and send_mail features. I've read through this link http://groups.google.com/group/django-users/browse_thread/thread/51827a2a40e5262e/bb66770dfff75cfe but for some unknown reason, I still can't use django's model. Will anyone kindly look