aboutsummaryrefslogtreecommitdiff
path: root/rpki/django_settings/pubd.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-10-25 03:58:19 +0000
committerRob Austein <sra@hactrn.net>2015-10-25 03:58:19 +0000
commita0da0a0088a8c8da50bd6b1ebb88277f58e88a81 (patch)
treebdbf8bab3788027288c49c4d3bb5e84d269049b2 /rpki/django_settings/pubd.py
parentafdeab028259c9cbab6112fe005a1e78c135fe43 (diff)
Make SQL engine configurable. Works for MySQL, not yet tested for anything else.
svn path=/branches/tk705/; revision=6147
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.