To give you a little brief about what I'm tying to do ->
I'm building a timed-contest app which expires at a set datetime.
So basically I want a script which queries my model and changes some values according to busines logic periodically
How would you do this in django ?
You use celery.
http://celery.readthedocs.org/en/latest/userguide/periodic-tasks.html
You wouldn't. You'd use cron to run a standalone script or management command.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With