Re: Re: Interacting with models from the CLI

2006-08-20 Thread Jon Atkinson
Thank you both. I had it working (though it was far from elegant), so that other thread will be very helpful. --Jon On 19/08/06, Bryan Chow <[EMAIL PROTECTED]> wrote: > > See: > http://groups.google.com/group/django-users/browse_thread/thread/51827a2a40e5262e > > Bryan :) > > > > On 8/19/06, Jon

Re: Interacting with models from the CLI

2006-08-19 Thread Bryan Chow
See: http://groups.google.com/group/django-users/browse_thread/thread/51827a2a40e5262e Bryan :) On 8/19/06, Jon Atkinson <[EMAIL PROTECTED]> wrote: > Hi, > > I need to schedule some operations on my database to happen at a > certain time each day. I'm tackling this by using cron, so ideally I'

Re: Interacting with models from the CLI

2006-08-19 Thread James Bennett
On 8/19/06, Jon Atkinson <[EMAIL PROTECTED]> wrote: > I've tried also writing a stand-alone script and importing > the necessary modules, but I'm having problems with > DJANGO_SETTINGS_MODULE not being set (it seems that django does some > magic which is beyond me at this point) - am I approaching

Interacting with models from the CLI

2006-08-19 Thread Jon Atkinson
Hi, I need to schedule some operations on my database to happen at a certain time each day. I'm tackling this by using cron, so ideally I'd like to be able to write a stand-alone python script which will do this. My first though would be to pass a script to ./manage.py shell, (something like ./m