diff --git a/config/celery.py b/config/celery.py index ec54c60..2fe282b 100644 --- a/config/celery.py +++ b/config/celery.py @@ -7,14 +7,14 @@ os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings') app = Celery('telegram_bots') app.config_from_object({ - 'broker_url': 'redis://127.0.0.1:6379/1', + 'broker_url': 'redis://127.0.0.1:6379/4', 'result_backend': 'django-db', 'beat_scheduler': 'django_celery_beat.schedulers:DatabaseScheduler', 'worker_concurrency': 4, 'ONCE': { 'backend': 'celery_once.backends.Redis', 'settings': { - 'url': 'redis://localhost:6379/0', + 'url': 'redis://localhost:6379/4', 'default_timeout': 60 * 60, } } diff --git a/config/settings.py b/config/settings.py index 23dcd55..b802052 100644 --- a/config/settings.py +++ b/config/settings.py @@ -93,7 +93,7 @@ STATICFILES_FINDERS = [ CACHES = { "default": { "BACKEND": "django_redis.cache.RedisCache", - "LOCATION": "redis://127.0.0.1:6379/1", + "LOCATION": "redis://127.0.0.1:6379/4", "OPTIONS": { "CLIENT_CLASS": "django_redis.client.DefaultClient", }