Monday, August 29, 2011

Re: Delete after specific date

You could always write your own cron equivalent functionality
into your management command. But why keep an extra process
just hanging out until the next delete event? If your on an O/S that
has cron, then it's already running.

Bill

On Mon, Aug 29, 2011 at 1:56 PM, Goran <thegorki@gmail.com> wrote:
> Thanks Bill, seems that cron is the easiest way even if  I don't like
> it. I was looking for more pythonic way. Anyway thanks for reply.
>
> Goran
>
>
> On Aug 29, 7:26 pm, Bill Freeman <ke1g...@gmail.com> wrote:
>> Presuming deleted sometime on the day is close enough, write a
>> management command that queries for items beyond their
>> expiration and deletes them.  Run this script nightly using cron, or
>> you O/S's equivalent.
>>
>> Bill
>
> --
> 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+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>
>

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment