Skip to content
This repository has been archived by the owner on May 30, 2020. It is now read-only.

Latest commit

 

History

History
34 lines (25 loc) · 559 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 559 Bytes

django-background-tasks-example

This example shows how to set up and use django-background-tasks.

Usage

Install project dependencies

pip install -r requirements.txt

Prepare database

cd project
python manage.py migrate

Start the server.

python manage.py runserver

Register a task (on separate terminal)

curl -d message=hello http://localhost:8000/api/v1/tasks/

Process tasks

python manage.py process_tasks