Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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"
Release History

Release History

This version
History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
djmodelcron-0.1.0.tar.gz (3.4 kB) Copy SHA256 Checksum SHA256 Source Jul 16, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting