Skip to content

mdrkb/django-celery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published