From 397beaf6d9900dc3b3cb612c89ebf1d57b1d16f6 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Mon, 26 Oct 2015 03:03:54 +0000 Subject: 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 --- rpki/django_settings/common.py | 6 +++--- 1 file 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 -- cgit v1.2.3