aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-06-04 15:16:54 +0100
committerGravatar GitHub <[email protected]>2024-06-04 15:16:54 +0100
commit63ab8c45e18f50aa05df59c5a20f21dc820369e9 (patch)
treefb487db42c3ca3c82f87856bdc91d21dd4f54c21
parentBump ruff from 0.4.5 to 0.4.6 (#1330) (diff)
parentUse Prometheus drop-in database engines (diff)
Merge pull request #1333 from python-discord/jb3/monitoring/prometheus-db-metrics
Use Prometheus drop-in database engines
-rw-r--r--pydis_site/settings.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_site/settings.py b/pydis_site/settings.py
index f5851edb..c4ff205a 100644
--- a/pydis_site/settings.py
+++ b/pydis_site/settings.py
@@ -188,8 +188,8 @@ WSGI_APPLICATION = 'pydis_site.wsgi.application'
# https://docs.djangoproject.com/en/2.1/ref/settings/#databases
DATABASES = {
- 'default': env.db(),
- 'metricity': env.db('METRICITY_DB_URL'),
+ 'default': env.db(engine="django_prometheus.db.backends.postgresql"),
+ 'metricity': env.db('METRICITY_DB_URL', engine="django_prometheus.db.backends.postgresql"),
} if not STATIC_BUILD else {}
# Password validation