Django scheduler

Then my recommendation would be to create a Django custom management command and run it as a cron job.

(Side note: The size of the function(s) being executed really isn’t relevant to the discussion here. It doesn’t matter whether it’s 10 lines or 10,000 lines - it’s a Django program that needs to be run.)