Python Forum

Full Version: dynamically setting the time django-crontab
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have implemented a Django cron functionality.I defined the time interval in settings.py file like
CRONJOBS = [
    ('*/1 * * * *', 'sampleapp.cron.scheduled_job')
]
But this project will be linked with UI .The requirement is that the user will set a future time for cron activity from the screen and we will be saving it in DB. So we hav to pick that time and run the job.

So it will be dynamic time.

so what change should i make in settings.py file to get a dynamic input