django-configurations-celery-app

django-configurations Celery app


Keywords
django, django-configurations, celery, python
License
Unlicense
Install
pip install django-configurations-celery-app==2020.7.1

Documentation

Installation

$ [sudo] pip install django-configurations-celery-app

Examples

from django_configurations_celery_app import app
$ celery -A django_configurations_celery_app worker -P gevent -c 20 -Q celery

P.S.: app source

import os

from celery import Celery

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings')
os.environ.setdefault('DJANGO_CONFIGURATION', 'Dev')

import configurations
configurations.setup()

app = Celery()
app.config_from_object('django.conf:settings')

Links

readme42.com