File tree 1 file changed +4
-4
lines changed
{{cookiecutter.project_slug}}/config/settings
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 45
45
# ------------------------------------------------------------------------------
46
46
# https://docs.djangoproject.com/en/dev/ref/settings/#databases
47
47
try :
48
- { % if cookiecutter .use_docker == "y" - % }
48
+ {% - if cookiecutter .use_docker == "y" % }
49
49
DATABASES = {"default" : env .db ("DATABASE_URL" )}
50
- { % - else % }
50
+ {% - else % }
51
51
DATABASES = {
52
52
"default" : env .db (
53
53
"DATABASE_URL" ,
54
54
default = "postgres://{% if cookiecutter.windows == 'y' %}localhost{% endif %}/{{cookiecutter.project_slug}}" ,
55
55
),
56
56
}
57
- { % - endif % }
57
+ {% - endif % }
58
58
except environ .ImproperlyConfigured :
59
59
DATABASES = {
60
60
"default" : {
297
297
# https://docs.celeryq.dev/en/stable/userguide/configuration.html#std:setting-timezone
298
298
CELERY_TIMEZONE = TIME_ZONE
299
299
# https://docs.celeryq.dev/en/stable/userguide/configuration.html#std:setting-broker_url
300
- CELERY_BROKER_URL = env ("CELERY_BROKER_URL" )
300
+ CELERY_BROKER_URL = env ("CELERY_BROKER_URL" , default = env ( "REDIS_URL" ) )
301
301
# https://docs.celeryq.dev/en/stable/userguide/configuration.html#std:setting-result_backend
302
302
CELERY_RESULT_BACKEND = CELERY_BROKER_URL
303
303
# https://docs.celeryq.dev/en/stable/userguide/configuration.html#result-extended
You can’t perform that action at this time.
0 commit comments