Skip to main content

Generic cron task for running instances of django models

Project description

What’s that?

Is a library that you can use to attach programmed executions of a method in the instances of any model in your django applications.

How to use

Install djmodelcron and django-recurrence.

You need to add a generic relation to the cron model of the djmodelcron app.

Using it

INSTALLED_APPS = (
             ...
             'djmodelcron',
             'recurrence',
)



# In your models.py
from djmodelcron.models import Cron

class MyModel(models.Model):
 title = models.CharField(max_length=125)
 cron = generic.GenericRelation(Cron)

 def run(self):
  print "This is call every time associated cron is executed"

Project details


Release history Release notifications

This version
History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
djmodelcron-0.1.0.tar.gz (3.4 kB) Copy SHA256 hash SHA256 Source None Jul 16, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page