Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BIN-PDT/WEBAPP_DJANGO_CELERY

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1. PROJECT

git clone https://github.com/BIN-PDT/WEBAPP_DJANGO_CELERY.git && rm -rf WEBAPP_DJANGO_CELERY/.git

For privacy reasons, replace the sensitive information in this project with your own.

  • Register Message Broker to obtain BROKER_URL for Celery.

  • Register OAuth Application with each Social Provider to obtain CLIENT_ID & CLIENT_SECRET.

  • Replace EMAIL_ADDRESS & EMAIL_PASSWORD (Application Password) with your Gmail Account.

  • Generate SECRET_KEY.

    python manage.py shell
    
    from django.core.management.utils import get_random_secret_key
    print(get_random_secret_key())
    exit()

2. VIRTUAL ENVIRONMENT

python -m venv .venv
.venv\Scripts\activate.bat

3. DEPENDENCY

python.exe -m pip install --upgrade pip
pip install -r requirements.txt

4. DATABASE

python manage.py migrate

5. RUN CELERY

celery -A a_core worker -P solo -E -l info
celery -A a_core beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
celery -A a_core flower

6. RUN APPLICATION

python manage.py runserver

About

INTRODUCTION TO PYTHON DJANGO CELERY

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published