Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/waqqas/django-easy-schedule
- Owner: waqqas
- License: mit
- Created: 2024-03-31T09:15:19.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-05-12T06:46:39.000Z (8 months ago)
- Last Synced: 2024-12-19T13:19:11.070Z (about 1 month ago)
- Language: Python
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.