Changed 'taskman' to 'taskapp

This commit is contained in:
Daniel Greenfeld 2015-07-13 13:32:47 -07:00
parent f038f8fd88
commit 3710e9b953
3 changed files with 4 additions and 3 deletions

View File

@ -257,7 +257,7 @@ LOGGING = {
} }
{% if cookiecutter.use_celery == "y" %} {% if cookiecutter.use_celery == "y" %}
########## CELERY ########## 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. # 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',) INSTALLED_APPS += ('kombu.transport.django',)
BROKER_URL = env("CELERY_BROKER_URL", default='django://') BROKER_URL = env("CELERY_BROKER_URL", default='django://')

View File

@ -14,7 +14,7 @@ app = Celery('{{cookiecutter.repo_name}}')
class CeleryConfig(AppConfig): class CeleryConfig(AppConfig):
name = '{{cookiecutter.repo_name}}.taskman' name = '{{cookiecutter.repo_name}}.taskapp'
verbose_name = 'Celery Config' verbose_name = 'Celery Config'
def ready(self): def ready(self):
@ -28,5 +28,6 @@ class CeleryConfig(AppConfig):
def debug_task(self): def debug_task(self):
print('Request: {0!r}'.format(self.request)) print('Request: {0!r}'.format(self.request))
{% else %} {% 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 %} {% endif %}