The example project for the deployment of Django + Celery on the Heroku hosting. For the article found here: https://garmoncheg.blogspot.com/2019/02/running-tasks-with-celery-on-heroku.html
- Web Framework - Python 3/Django https://docs.djangoproject.com
- Celery https://celery.readthedocs.io/en/latest/index.html
In a terminal window:
-
git clone https://github.com/garmoncheg/djheroku
-
cd djheroku
-
mkvirtualenv --python=`which python3` djheroku
(Install virtualenvwrapper if you don't have it https://virtualenvwrapper.readthedocs.io/en/latest/) -
workon djheroku
-
pip install -r requirements.txt
-
python manage.py migrate
$ celery worker --loglevel=info --beat
$ ./manage.py runserver 0.0.0.0:8000