aboutsummaryrefslogtreecommitdiff
path: root/rpki/django_settings/pubd.py
diff options
context:
space:
mode:
Diffstat (limited to 'rpki/django_settings/pubd.py')
-rw-r--r--rpki/django_settings/pubd.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/rpki/django_settings/pubd.py b/rpki/django_settings/pubd.py
index 8539b8e5..0df0ddb9 100644
--- a/rpki/django_settings/pubd.py
+++ b/rpki/django_settings/pubd.py
@@ -26,12 +26,8 @@ __version__ = "$Id$"
# Database configuration.
-DATABASES = dict(
- default = dict(ENGINE = "django.db.backends.mysql",
- NAME = cfg.get("sql-database", section = "pubd"),
- USER = cfg.get("sql-username", section = "pubd"),
- PASSWORD = cfg.get("sql-password", section = "pubd"),
- OPTIONS = dict(charset = "latin1")))
+DATABASES = DatabaseConfigurator().configure(cfg, "pubd")
+del DatabaseConfigurator
# Apps.