5👍
✅
cron is the right tool for this, but you don’t want a separate cron entry for each event. Instead, cron should trigger a Django script that checks the database for any notifications that are due, and fires them.
4👍
You may want to consider Celery and its periodic scheduled tasks. Then you could schedule the tasks directly from your Python code, without having to add a crontab entry for each one.
- [Django]-Django-allauth – Send email verification using Gmail account
- [Django]-Problem installing pyscopg2 on Mac OS X
- [Django]-I am getting this error rest_framework.request.WrappedAttributeError
- [Django]-Python & Django on a Mac: Illegal hardware instruction
- [Django]-How do I retrieve a value of a field in a queryset object
Source:stackexchange.com