I have a Django app that has an expiration date field where the user has to fill up when submitting the form. What I want to do next is to have a function that checks the expiration date and automatically sends an email notification to the user three months before the expiration date. I am not sure whether it is possible to do that or not. I did some reading on Django-notification but I am not sure what's the best way to approach this.
django notify user three month before expire date
592 views Asked by user11766958 At
1
There are several methods to do this.
(request.user.exp_date - date.today()).days <= 90
, then send mail.