Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/waqqas/django-easy-schedule

Integration of Python schedule library with Django
https://github.com/waqqas/django-easy-schedule

Last synced: about 20 hours ago
JSON representation

Integration of Python schedule library with Django

Awesome Lists containing this project

README

        

### django-easy-schedule
Integration of Python schedule library with Django

### Installation

Add `"django_easy_schedule"` to your `INSTALLED_APPS` settings like this:

```
INSTALLED_APPS = (
"django_easy_schedule",
...
)
```

### Usage
Create a file named `jobs.py` in any installed app, like this:

```
from schedule import every, repeat

@repeat(every(1).seconds)
def run_job():
try:
## Do your work here
pass
except KeyboardInterrupt:
pass

```

### Running jobs

To run the jobs use the following command

`python manage.py jobs run`

### More documentation

For more information check the documentation of [`schedule`](https://schedule.readthedocs.io/en/stable/index.html) package.