aboutsummaryrefslogtreecommitdiff
path: root/rpki/django_settings
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-10-26 03:03:54 +0000
committerRob Austein <sra@hactrn.net>2015-10-26 03:03:54 +0000
commit397beaf6d9900dc3b3cb612c89ebf1d57b1d16f6 (patch)
tree5300448af59de95c0e801dfbcd61f99aa8fe4bc2 /rpki/django_settings
parent924f08b8f22239f688920e554fcd37ef924e4d29 (diff)
Unbound variable in postgresql configuration.
postgresql sort of works with the core daemons and rpkic, well enough to generate RPKI objects if one hand configures it, but one can't even run migrations for the GUI, due to a few non-portable SQL data types, and migrations from earlier version of the IRDB have similar problems. svn path=/branches/tk705/; revision=6151
Diffstat (limited to 'rpki/django_settings')
-rw-r--r--rpki/django_settings/common.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpki/django_settings/common.py b/rpki/django_settings/common.py
index d2fe496c..2f676660 100644
--- a/rpki/django_settings/common.py
+++ b/rpki/django_settings/common.py
@@ -96,9 +96,9 @@ class DatabaseConfigurator(object):
def postgresql(self):
return dict(
ENGINE = "django.db.backends.postgresql_psycopg2",
- NAME = cfg.get("sql-database", section = section),
- USER = cfg.get("sql-username", section = section),
- PASSWORD = cfg.get("sql-password", section = section))
+ NAME = cfg.get("sql-database", section = self.section),
+ USER = cfg.get("sql-username", section = self.section),
+ PASSWORD = cfg.get("sql-password", section = self.section))
# Apps are also handled by the modules that import this one, now that