Better way to include django_celery_beat in INSTALLED_APPS

This commit is contained in:
Keyvan Mosharraf 2019-05-31 03:45:59 -07:00
parent aee9f3ecfa
commit e9e79428d3

View File

@ -75,11 +75,10 @@ THIRD_PARTY_APPS = [
"allauth.account",
"allauth.socialaccount",
"rest_framework",
]
# http://docs.celeryproject.org/en/latest/userguide/periodic-tasks.html#using-custom-scheduler-classes
{% if cookiecutter.use_celery == 'y' -%}
THIRD_PARTY_APPS += ["django_celery_beat"]
{%- if cookiecutter.use_celery == 'y' %}
"django_celery_beat",
{%- endif %}
]
LOCAL_APPS = [
"{{ cookiecutter.project_slug }}.users.apps.UsersConfig",