Django - how to send mail 5 days before event?
You can set this  mail send function as cron job。You can schedule it by crontab or Celery if Your team has used it.
I'm Junior Django Dev. Got my first project. Doing quite well but senior dev that teaches me went on vacations....
I have a Task in my company to create a function that will remind all people in specyfic Group, 5 days before event by sending mail.
There is a TournamentModel that contains a tournament_start_date for instance '10.08.2018'.
Player can join tournament, when he does he joins django group "Registered".
I have to create a function (job?) that will check tournament_start_date and if tournament begins in 5 days, this function will send emails to all people in "Registered" Group... automatically.
How can I do this? What should I use? How to run it and it will automatically check? I'm learning python/django for few months... but I meet jobs fot the first time ;/
I will appreciate any help.