diff options
author | Rob Austein <sra@hactrn.net> | 2015-10-25 03:58:19 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-10-25 03:58:19 +0000 |
commit | a0da0a0088a8c8da50bd6b1ebb88277f58e88a81 (patch) | |
tree | bdbf8bab3788027288c49c4d3bb5e84d269049b2 /rpki/django_settings/irdb.py | |
parent | afdeab028259c9cbab6112fe005a1e78c135fe43 (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/irdb.py')
-rw-r--r-- | rpki/django_settings/irdb.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/rpki/django_settings/irdb.py b/rpki/django_settings/irdb.py index 56ed92ff..2a49739b 100644 --- a/rpki/django_settings/irdb.py +++ b/rpki/django_settings/irdb.py @@ -28,12 +28,9 @@ __version__ = "$Id$" # Database configuration. -DATABASES = dict( - default = dict(ENGINE = "django.db.backends.mysql", - NAME = cfg.get("sql-database", section = "irdbd"), - USER = cfg.get("sql-username", section = "irdbd"), - PASSWORD = cfg.get("sql-password", section = "irdbd"), - OPTIONS = dict(charset = "latin1"))) +DATABASES = DatabaseConfigurator().configure(cfg, "irdbd") +del DatabaseConfigurator + # Apps. |