mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-29 21:14:03 +03:00
Better way to include django_celery_beat in INSTALLED_APPS
This commit is contained in:
parent
aee9f3ecfa
commit
e9e79428d3
|
@ -75,11 +75,10 @@ THIRD_PARTY_APPS = [
|
||||||
"allauth.account",
|
"allauth.account",
|
||||||
"allauth.socialaccount",
|
"allauth.socialaccount",
|
||||||
"rest_framework",
|
"rest_framework",
|
||||||
]
|
{%- if cookiecutter.use_celery == 'y' %}
|
||||||
# http://docs.celeryproject.org/en/latest/userguide/periodic-tasks.html#using-custom-scheduler-classes
|
"django_celery_beat",
|
||||||
{% if cookiecutter.use_celery == 'y' -%}
|
|
||||||
THIRD_PARTY_APPS += ["django_celery_beat"]
|
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
]
|
||||||
|
|
||||||
LOCAL_APPS = [
|
LOCAL_APPS = [
|
||||||
"{{ cookiecutter.project_slug }}.users.apps.UsersConfig",
|
"{{ cookiecutter.project_slug }}.users.apps.UsersConfig",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user