I have an app to keep track of my site sponsors. One of the fields is
a datetime field for when their sponsorship period ends. What I'd like
to do is send myself a notification (through a cron job) when that
date is coming up, say two weeks away. So, how would I say something
like

if sponsor.period_end < now + 2 weeks:

Or, alternately, just filter:
Sponsor.objects.filter(period_end__gte=datetime.datetime.now() + 2
weeks)


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to