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 <[email protected]> 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 <[email protected]> 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 [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to