ozcanyarimdunya / django-celery

Django asynchronous task example using Celery and RabbitMQ

Home Page:https://rakibul.net/django-celery-1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mycelery

Django asynchronous task example using Celery and RabbitMQ.

Getting Started

Prerequisities

  • Python >= 3.5.2
  • RabbitMQ
  • Virtualenv

Installing

git clone https://github.com/mdrkb/django-celery.git
cd django-celery
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
cd mycelery
python manage.py migrate

Running Django Server

python manage.py runserver

Running RabbitMQ Worker

Open another terminal. Navigate inside ../mycelery/mycelery/ by activating virutal environment. Then run the following command:

celery -A mycelery worker -l info

Open browser and go to http://127.0.0.1:8000/generate-user/. Give input for number of users and the task will be performed asynchronously.

About

Django asynchronous task example using Celery and RabbitMQ

https://rakibul.net/django-celery-1

License:MIT License


Languages

Language:Python 81.0%Language:HTML 19.0%