You have to write a management command for this. See: https://docs.djangoproject.com/en/1.8/howto/custom-management-commands/
We use such of those commands in a cron job on the server which automatically run every day. Eg. for updating the search index or the encyclopedia. -- https://code.launchpad.net/~trimardio/widelands-website/module_scheduling/+merge/335570 Your team Widelands Developers is requested to review the proposed merge of lp:~trimardio/widelands-website/module_scheduling into lp:widelands-website. _______________________________________________ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp