aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/settings.py
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-06-04 02:09:53 +0100
committerGravatar Joe Banks <[email protected]>2024-06-04 02:09:53 +0100
commita5cbe4943645259189ec47e69b5042a274c8a824 (patch)
treefb487db42c3ca3c82f87856bdc91d21dd4f54c21 /pydis_site/settings.py
parentBump ruff from 0.4.5 to 0.4.6 (#1330) (diff)
Use Prometheus drop-in database engines
Diffstat (limited to 'pydis_site/settings.py')
-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