hello everyone,
Is there a way to create a record at midnight at Saturday every week. The record is something like the following.
winner = Winner(name="winner", points=100)
winner.save()
Thanks for the help!
hello everyone,
Is there a way to create a record at midnight at Saturday every week. The record is something like the following.
winner = Winner(name="winner", points=100)
winner.save()
Thanks for the help!
You have at least two options for doing this.
Create a custom django-admin command that is scheduled to run weekly.
Using something like Celery with Celery Beats to create a scheduled task to run every week.