This commit is contained in:
minhuyen 2017-10-13 01:40:05 +00:00 committed by GitHub
commit 1bf1c496d3
3 changed files with 3 additions and 2 deletions

View File

@ -147,6 +147,7 @@ Listed in alphabetical order.
Tom Atkins `@knitatoms`_
Tom Offermann
Travis McNeill `@Travistock`_ @tavistock_esq
Uyen Do `@minhuyen`_
Vitaly Babiy
Vivian Guillen `@viviangb`_
Wan Liuyang `@sfdye`_ @sfdye

View File

@ -50,7 +50,7 @@ django-redis==4.8.0
redis>=2.10.5
{% if cookiecutter.use_celery == "y" %}
celery==3.1.25
celery==4.1.0
{% endif %}
{% if cookiecutter.use_compressor == "y" %}

View File

@ -20,7 +20,7 @@ class CeleryConfig(AppConfig):
def ready(self):
# Using a string here means the worker will not have to
# pickle the object when using Windows.
app.config_from_object('django.conf:settings')
app.config_from_object('django.conf:settings', namespace='CELERY')
installed_apps = [app_config.name for app_config in apps.get_app_configs()]
app.autodiscover_tasks(lambda: installed_apps, force=True)