mirror of
https://github.com/Hopiu/cookiecutter-django.git
synced 2026-05-10 13:44:43 +00:00
Rename CeleryConfig to CeleryAppConfig
This commit is contained in:
parent
f25492d74f
commit
95d218e3e4
2 changed files with 2 additions and 2 deletions
|
|
@ -228,7 +228,7 @@ MANAGERS = ADMINS
|
|||
{% if cookiecutter.use_celery == 'y' -%}
|
||||
# Celery
|
||||
# ------------------------------------------------------------------------------
|
||||
INSTALLED_APPS += ['{{cookiecutter.project_slug}}.taskapp.celery.CeleryConfig']
|
||||
INSTALLED_APPS += ['{{cookiecutter.project_slug}}.taskapp.celery.CeleryAppConfig']
|
||||
# http://docs.celeryproject.org/en/latest/userguide/configuration.html#std:setting-broker_url
|
||||
CELERY_BROKER_URL = env('CELERY_BROKER_URL', default='django://')
|
||||
# http://docs.celeryproject.org/en/latest/userguide/configuration.html#std:setting-result_backend
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ if not settings.configured:
|
|||
app = Celery('{{cookiecutter.project_slug}}')
|
||||
|
||||
|
||||
class CeleryConfig(AppConfig):
|
||||
class CeleryAppConfig(AppConfig):
|
||||
name = '{{cookiecutter.project_slug}}.taskapp'
|
||||
verbose_name = 'Celery Config'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue