I have been trying a long for creating a periodic task in Django but there are lot of version constraints and not a clear explanation.
We can configure periodic tasks either by manually adding the configurations to the celery.py module or using the django-celery-beat package which allows us to add periodic tasks from the Django Admin by extending the Admin functionality to allow scheduling tasks.
As you build and scale a Django app you'll inevitably need to run certain tasks periodically and automatically in the background. Some examples: Generating periodic reports. Clearing cache. Sending batch e-mail notifications.
I recommend Celery
. What is Celery?
Celery supports scheduling tasks. Check this doc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With