Create a record at a particular time every week?

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)

Thanks for the help!

You have at least two options for doing this.

  1. Create a custom django-admin command that is scheduled to run weekly.

  2. Using something like Celery with Celery Beats to create a scheduled task to run every week.