mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-03-03 19:08:15 +03:00
Install django_celery_beat in the proper way
This commit is contained in:
parent
631bddc811
commit
aee9f3ecfa
|
@ -75,10 +75,12 @@ THIRD_PARTY_APPS = [
|
||||||
"allauth.account",
|
"allauth.account",
|
||||||
"allauth.socialaccount",
|
"allauth.socialaccount",
|
||||||
"rest_framework",
|
"rest_framework",
|
||||||
{% if cookiecutter.use_celery == 'y' -%}
|
|
||||||
"django_celery_beat",
|
|
||||||
{%- endif %}
|
|
||||||
]
|
]
|
||||||
|
# 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"]
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
LOCAL_APPS = [
|
LOCAL_APPS = [
|
||||||
"{{ cookiecutter.project_slug }}.users.apps.UsersConfig",
|
"{{ cookiecutter.project_slug }}.users.apps.UsersConfig",
|
||||||
# Your stuff: custom apps go here
|
# Your stuff: custom apps go here
|
||||||
|
|
Loading…
Reference in New Issue
Block a user