mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-26 08:20:38 +03:00
Changed 'taskman' to 'taskapp
This commit is contained in:
parent
f038f8fd88
commit
3710e9b953
|
@ -257,7 +257,7 @@ LOGGING = {
|
|||
}
|
||||
{% if cookiecutter.use_celery == "y" %}
|
||||
########## CELERY
|
||||
INSTALLED_APPS += ('{{cookiecutter.repo_name}}.taskman.celery.CeleryConfig',)
|
||||
INSTALLED_APPS += ('{{cookiecutter.repo_name}}.taskapp.celery.CeleryConfig',)
|
||||
# if you are not using the django database broker (e.g. rabbitmq, redis, memcached), you can remove the next line.
|
||||
INSTALLED_APPS += ('kombu.transport.django',)
|
||||
BROKER_URL = env("CELERY_BROKER_URL", default='django://')
|
||||
|
|
|
@ -14,7 +14,7 @@ app = Celery('{{cookiecutter.repo_name}}')
|
|||
|
||||
|
||||
class CeleryConfig(AppConfig):
|
||||
name = '{{cookiecutter.repo_name}}.taskman'
|
||||
name = '{{cookiecutter.repo_name}}.taskapp'
|
||||
verbose_name = 'Celery Config'
|
||||
|
||||
def ready(self):
|
||||
|
@ -28,5 +28,6 @@ class CeleryConfig(AppConfig):
|
|||
def debug_task(self):
|
||||
print('Request: {0!r}'.format(self.request))
|
||||
{% else %}
|
||||
# use this as a starting point for your project with celery.
|
||||
# Use this as a starting point for your project with celery.
|
||||
# If you are not using celery, you can remove this app
|
||||
{% endif %}
|
Loading…
Reference in New Issue
Block a user