django-cronjobs

Cronjob helper for Django
Download

django-cronjobs Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Publisher Name:
  • Mozilla

django-cronjobs Tags


django-cronjobs Description

Cronjob helper for Django django-cronjobs provides a @cron decorator to mark cronjob methods in your site and a namespace for manage so they can be executed.Installation 1. Install from pypi: pip install django-cronjobs 2. Add 'cronjobs' to your INSTALLED_APPS in settings.py.Usage:Methods can be added to anywhere, but if you put them in a file called cron.py inside an app, they will be automatically imported.Register your method by decorating it with @register, for example:from cronjobs import register@registerdef some_function(): passYou can then run:manage.py cron some_function Requirements: · Python


django-cronjobs Related Software