From 08417128da7234cf97d1a4605cf85890954d54bc Mon Sep 17 00:00:00 2001 From: Sigurd Fosseng Date: Wed, 17 Sep 2014 23:22:41 +0200 Subject: [PATCH] documentation was out of date --- apps/mommy/Readme.md | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/apps/mommy/Readme.md b/apps/mommy/Readme.md index d3af5e49b..14a7a6574 100644 --- a/apps/mommy/Readme.md +++ b/apps/mommy/Readme.md @@ -3,22 +3,15 @@ Mommy-scheduler This is a very simple wrapper for [APSchduler](http://pythonhosted.org/APScheduler/) for Django. -## configuration: -None. More from APwrapper could be added, surely. +## Running Sheduler -## Setup: -Add `mommy` to installed apps and add this to the global `urls.py`: - -```python -import mommy +`python manage.py mommy` -mommy.autodiscover() -mommy.run() -``` +## configuration: -the code above will automatically discover all apps with mommy.py and add them -to the schedule, then run the scheduler. +None. More from APwrapper could be added, surely. +## Setup: An example of a mommy.py file, defining a task that gets run every 5 seconds: ```python @@ -72,8 +65,3 @@ LOGGING = { } } ``` - -## Limitations: -For the scheduler to start running, one must load urls.py. -This is done my doing a simple pageload somewhere in your application, and you -only need to do it *once*