Fix CELERY_BROKER_URL naming mismatch
* Fix CELERY_BROKER_URL naming mismatch
Closes
* Fix all occurences
@@ -267,11 +267,11 @@ AUTOSLUG_SLUGIFY_FUNCTION = 'slugify.slugify'
{% if cookiecutter.use_celery == 'y' %}
########## CELERY
INSTALLED_APPS += ['{{cookiecutter.project_slug}}.taskapp.celery.CeleryConfig']
-BROKER_URL = env('CELERY_BROKER_URL', default='django://')
-if BROKER_URL == 'django://':
+CELERY_BROKER_URL = env('CELERY_BROKER_URL', default='django://')
+if CELERY_BROKER_URL == 'django://':
CELERY_RESULT_BACKEND = 'redis://'
else:
- CELERY_RESULT_BACKEND = BROKER_URL
+ CELERY_RESULT_BACKEND = CELERY_BROKER_URL
########## END CELERY
{% endif %}
