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'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 ./manage.py shell myscript.py), but this doesn't seem > to work. 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 this in the > correct way, and if so what do I need to import/read from settings.py > so that a stand-alone script can interact with my models? > > Thanks, > > --Jon --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---