Simple implementation of celery shared task with django framework. Every step of celery implementation (from a point of functional mail sending via django) is shown in "Implement celery" commit.
Before starting, make sure you have Redis server installed.
Create Python3 virtual environment:
mkvirtualenv --python=/usr/bin/python3 celery
Get the source from GitHub:
git clone [email protected]:HBalija/celery-django.git
Navigate to the project directory:
cd celery-django
Instal requirements:
pip install -r requirements.txt
Run development server:
python manage.py runserver
Run celery (in separate environment):
celery -A celery_django worker -l info
Point your browser to:
127.0.0.1:8000