From fb61383b2d376f78c6b62d646e94e9afe1d5645a Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Thu, 5 Jun 2025 17:28:56 +0300 Subject: [PATCH] Fixes: try without prometheus backends --- evibes/settings/caches.py | 3 ++- evibes/settings/database.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/evibes/settings/caches.py b/evibes/settings/caches.py index 722ca800..fd15fd2f 100644 --- a/evibes/settings/caches.py +++ b/evibes/settings/caches.py @@ -4,7 +4,8 @@ from evibes.settings.base import REDIS_PASSWORD, getenv CACHES = { "default": { - "BACKEND": "django_prometheus.cache.backends.redis.RedisCache", + "BACKEND": "django_redis.cache.RedisCache", + # "BACKEND": "django_prometheus.cache.backends.redis.RedisCache", "LOCATION": getenv("CELERY_BROKER_URL", f"redis://:{REDIS_PASSWORD}@redis:6379/0"), "OPTIONS": { "CLIENT_CLASS": "django_redis.client.DefaultClient", diff --git a/evibes/settings/database.py b/evibes/settings/database.py index 3036c70c..781ef829 100644 --- a/evibes/settings/database.py +++ b/evibes/settings/database.py @@ -2,7 +2,8 @@ from evibes.settings.base import * # noqa: F403 DATABASES = { "default": { - "ENGINE": "django_prometheus.db.backends.postgis", + # "ENGINE": "django_prometheus.db.backends.postgis", + "ENGINE": "django.contrib.gis.db.backends.postgis", "NAME": getenv("POSTGRES_DB"), # noqa: F405 "USER": getenv("POSTGRES_USER"), # noqa: F405 "PASSWORD": getenv("POSTGRES_PASSWORD"), # noqa: F405