Cronjob helper for Django
Project description
Provides a @cron decorator to mark cronjob methods in your site and a namespace for manage so they can be executed.
Installation
Install from pypi:
pip install django-cronjobs
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 @register def some_function(): pass
You can then run:
manage.py cron some_function
License: BSD
Authors: Jeff Balogh then packaged and broken by Andy McKay
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-cronjobs-0.1.1.tar.gz
(1.9 kB
view hashes)