Re: find difference of dates between today and filter list[dates]

2018-07-26 Thread Deepak Madan Singh
for _date in dates: > diff = _date - now > print(_date.strftime('%Y%m%d'), diff.days) > if diff.days == 3: > print('Alert @ 3 days!') > > > On Wednesday, 25 July 2018 21:12:54 UTC+2, deepak madan wrote: >> >> HOW to find

Re: how to find activities dues for today and tommorow

2018-07-26 Thread Deepak Madan Singh
hould also provide a way so the > user can mark the reminder as "done" and not be bothered with it again). > > You can find more information about the Q here: > https://docs.djangoproject.com/en/2.0/topics/db/queries/# > complex-lookups-with-q-objects > > On Wed, J

find difference of dates between today and filter list[dates]

2018-07-25 Thread deepak madan
HOW to find the difference between a list of dates and today and find the difference matches some days difference. Help -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an e

how to find activities dues for today and tommorow

2018-07-25 Thread deepak madan
suppose a model for the tree which is planted on some days. The second model has activities dues to be done after some regular interval like 1) giving fertilizer A after 5 days 2) giving fertilizer B after 15 days. My question is when this 5th or 15th days arrives, to design a reminder page to s