you could also do it this way:

http://pythonblog300246943.blogspot.com/2009/09/cron-jobs-with-django-made-easy.html

On Oct 9, 5:56 am, Chris Withers <ch...@simplistix.co.uk> wrote:
> Streamweaver wrote:
> > You could set this up as a custom manage.py command and run a cron on
> > that.  Gives the advantage of both initiating from outside the app and
> > using Django's DB abstraction layer.
>
> That's prettymuch what I was planning to do :-)
>
> > Then just iterate over the month names more than 6 back from the
> > current position and delete the records.
>
> I'm keen to use "real dates" as Tim suggested. Perhaps just using the
> 1st day in each month as the "month"?
>
> Chris
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to