0

I am creating a web app where people can book a football court, the user select the day and the hour, and insert his email and phone number to book the football court. I don't ask for a sign up, but the user receive an email with an "activation" link to confirm the reservation. I would write a method or something that every X minutes check for the unactive reservations and delete them if the time has expired.

How can I do it in Django?

Bob Rob
  • 164
  • 2
  • 10

2 Answers2

2

You could use Celery for this. Celery is a task queue and supports also task scheduling.

RaideR
  • 869
  • 1
  • 12
  • 33
2

Use the celery module to schedule something in Python.

Check this post for more information about celery.

Safwan Samsudeen
  • 1,645
  • 1
  • 10
  • 25