*Implementing schedule task *
Note!!!!
1.You can't test this locally in Windows.
2.Don't forget to create the env file.
step 1:
FIRST install the django-crontab
And the create a function what you want to run.
step 2:
Add it to your settings.py
If you want to change the time please check the (crontab guru ) website
example:
step 3
And finally run this command
python manage.py crontab add
Happy code
Top comments (0)