- update celery from 3.1.25 to 4.1.0

This commit is contained in:
Uyen Minh Do 2017-10-13 08:35:23 +07:00
parent d0e5c4b3b6
commit 54634789d6
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -20,7 +20,7 @@ class CeleryConfig(AppConfig):
def ready(self): def ready(self):
# Using a string here means the worker will not have to # Using a string here means the worker will not have to
# pickle the object when using Windows. # 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()] installed_apps = [app_config.name for app_config in apps.get_app_configs()]
app.autodiscover_tasks(lambda: installed_apps, force=True) app.autodiscover_tasks(lambda: installed_apps, force=True)