Answer the question
In order to leave comments, you need to log in
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
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question