Tutorial by Examples

CELERY Installation - pip install django-celery Add Basic project structure. - src/ - bin/celery_worker_start # will be explained later on - logs/celery_worker.log - stack/__init __.py - stack/celery.py - stack/settings.py - stack/urls.py - manage.py ...
Create a script to start celery worker. Insert your script within your app. For example: stack/bin/celery_worker_start #!/bin/bash NAME="StackOverflow Project - celery_worker_start" PROJECT_DIR=/home/stackoverflow/apps/proj/proj/ ENV_DIR=/home/stackoverflow/apps/proj/env/...
Celery requires a broker to handle message-passing. We use RabbitMQ because it’s easy to setup and it is well supported. Install rabbitmq using the following command sudo apt-get install rabbitmq-server Once the installation is complete, create user, add a virtual host and set permissions. sud...

Page 1 of 1