dev #9

Merged
avm merged 100 commits from dev into main 2026-03-17 16:06:44 +03:00
Showing only changes of commit 49702096a0 - Show all commits

View File

@@ -1,6 +1,5 @@
""" """
Development settings - закрытый контур, без переменных окружения. Development settings - закрытый контур, без переменных окружения.
Docker на macOS - используется host.docker.internal.
""" """
from .base import * from .base import *
@@ -25,8 +24,8 @@ DATABASES = {
} }
# Celery # Celery
CELERY_BROKER_URL = "redis://host.docker.internal:6379/0" CELERY_BROKER_URL = "redis://redis:6379/0"
CELERY_RESULT_BACKEND = "redis://host.docker.internal:6379/0" CELERY_RESULT_BACKEND = "redis://redis:6379/0"
CELERY_ACCEPT_CONTENT = ["json"] CELERY_ACCEPT_CONTENT = ["json"]
CELERY_TASK_SERIALIZER = "json" CELERY_TASK_SERIALIZER = "json"
CELERY_RESULT_SERIALIZER = "json" CELERY_RESULT_SERIALIZER = "json"
@@ -36,7 +35,7 @@ CELERY_TIMEZONE = "Europe/Moscow"
CACHES = { CACHES = {
"default": { "default": {
"BACKEND": "django_redis.cache.RedisCache", "BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://host.docker.internal:6379/1", "LOCATION": "redis://redis:6379/1",
"OPTIONS": { "OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient", "CLIENT_CLASS": "django_redis.client.DefaultClient",
}, },