S
S
sortfact3332021-01-15 16:56:09
Django
sortfact333, 2021-01-15 16:56:09

How to create a scheduled task in django server?

I want to create a task (function) that would work once in a certain period of time.
For example, each user can only visit a page once per hour.
What is the best way for me to do this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dr. Bacon, 2021-01-15
@bacon

This is some kind of nonsense "each user can visit the page only once an hour." And so, write down the time of the previous visit and if the difference is less than an hour, do not let the user in.
Shl it is worth voicing the problem, and not the actions that you came up with to solve it.

A
alternativshik, 2021-01-15
@alternativshik

cron, celery, rq

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question