diff options
author | 2024-06-04 15:16:54 +0100 | |
---|---|---|
committer | 2024-06-04 15:16:54 +0100 | |
commit | 63ab8c45e18f50aa05df59c5a20f21dc820369e9 (patch) | |
tree | fb487db42c3ca3c82f87856bdc91d21dd4f54c21 | |
parent | Bump ruff from 0.4.5 to 0.4.6 (#1330) (diff) | |
parent | Use 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.py | 4 |
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 |