Metadata-Version: 2.1
Name: djmodelcron
Version: 0.1.0
Summary: Generic cron task for running instances of django models
Home-page: https://github.com/josesanch/djmodelcron
Author: José Sánchez Moreno
Author-email: jose@o2w.es
License: MIT
Platform: All platforms
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Python Software Foundation License
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python
Classifier: Programming Language :: SQL
License-File: LICENSE.txt
Requires-Dist: celery

Generic cron task for running instances of django models
========================================================

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
---------------

.. code-block:: python
                
   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"
   
             
      
