Answer the question
In order to leave comments, you need to log in
How to make Django run a Python script every N minutes?
Good afternoon
, I have a Django project, a Python script that, regardless of Django, deletes files that, say, 5 minutes have passed since they were created; and I need to somehow run this script every N minutes in order to clear the server of old files.
actually the question is:
can I run this script directly from Django?
Answer the question
In order to leave comments, you need to log in
Directly from django django commands
To run cron at intervals
To delete files older than x-days, neither django nor python is needed
add Celery to your Django project and forget about background task headaches forever
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question