Albert Albert - 1 year ago 134
Python Question

run a code every 5 minutes when django server is running

I have a django project and inside I have an app. Inside this app I created a management folder, inside this one I create a commands folder, and inside the last one I put my script with the file too. My question is: how can I do to autorun that code every X minutes once the server is running to don't worry about execute the script myself.

Answer Source

You can refer, django-chronograph is a simple application that allows you to control the frequency at which a Django management command gets run.


Hope this is helps you.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download